Colin-b/pytest_httpx

Introduce decorators to setup httpx_mock

Opened this issue · 0 comments

Right now only fixtures are available, making it impossible to change the overall behavior of the mock in between test cases.
This is currently worked around by separating tests in different files, based on the mock global settings. However it's not user-friendly enough, especially if those tests are essentially part of the same application context, thus belonging to the same test file / class.