getsentry / responses

A utility for mocking out the Python Requests library.
Apache License 2.0
4.08k stars 348 forks source link

Added `real_adapter_send` parameter to `RequestsMock` #671

Closed beliaev-maksim closed 9 months ago

beliaev-maksim commented 9 months ago

closes #670

allow to explicitly specify real send for each of the request mocks. That will unblock moto and allow moto users to use both responses and moto at the same time

codecov[bot] commented 9 months ago

Codecov Report

All modified lines are covered by tests :white_check_mark:

Files Coverage Δ
responses/__init__.py 100.00% <100.00%> (ø)
responses/tests/test_responses.py 99.80% <100.00%> (-0.20%) :arrow_down:

:loudspeaker: Thoughts on this report? Let us know!.

beliaev-maksim commented 9 months ago

@Seluj78 only if on moto side

Seluj78 commented 9 months ago

I don't understand your last reply but my thought was that there should be some documentation on responses and/or moto that explains the possible problems of using them both and a potential solution (with _real_send) instead of people making issues and searching for hours (like I did 👀)

bblommers commented 9 months ago

There will be documentation on Moto's side, after this is released.