Colin-b / pytest_httpx

pytest fixture to mock HTTPX
https://colin-b.github.io/pytest_httpx/
MIT License
344 stars 32 forks source link

feat: control request assertion on callback level #146

Open felixscherz opened 4 months ago

felixscherz commented 4 months ago

Hi, this PR introduces an assert_requested argument to control whether a callback should be checked for if it was called during test execution. This can already be controlled with the assert_all_responses_were_requested fixture on an all-or-nothing basis, but this feature allows more fine-grained control.

Let me know what you think!

sonarcloud[bot] commented 4 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud