You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Export names matchers and Response from RequestsMock instances (#739)
* Export names `matchers` and `Response` from RequestsMock instances
This makes it possible to import or access only RequestsMock (possibly via a pytest fixture) and still be able to easily access the matchers or assemble a Response object.
It also makes it easier to adopt pytest-responses which uses `responses` as the fixture variable which would conflict with an import of this module.
Add test cases that mask the existing imports and still access matchers or assemble a Response object via the RequestsMock instance.
* Recommend using pytest-responses for a pytest fixture
Rather than explaining how to roll your own in Markdown, recommend using the companion package to get a standard `responses` pytest fixture easily usable in test cases
0 commit comments