pytest-responses
pytest-responses copied to clipboard
py.test integration for responses
https://docs.pytest.org/en/6.2.x/deprecations.html?highlight=yield_fixture#the-yield-fixture-function-decorator
This makes it easier to use the names, since the fixture name `responses` clashes with the module import. For example, it is possible to add a type annotation to a...
### Environment python = "3.8.8" pytest = "6.2.2" pytest-responses = "0.5.0" ### Steps to Reproduce 1. Create a test that uses the `responses` fixture. 2. In a second test, use...
Committed via https://github.com/asottile/all-repos
I'd like to use pytest_responses, but I don't like that simply including pytest_responses in the test suite enables responses for all my tests. Although pytest_responses does provide a way to...