We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As discussed in #177 (comment) .
By default, respx responds with a httpx.Resopnse(200) when no mocked route is matched and assert_all_mocked is disabled.
httpx.Resopnse(200)
assert_all_mocked
The idea is to allow the router to take a default mock option to override that.
e.g.
mock_api = respx.mock(base_url="https://example.com/", default_mock=httpx.Response(404)) @mock_api def test_example(): response = httpx.get("https://example.com/some/path/") assert response.status_code == 404
By setting this option, assert_all_mocked should probably be forced disabled.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
As discussed in #177 (comment) .
By default, respx responds with a
httpx.Resopnse(200)
when no mocked route is matched andassert_all_mocked
is disabled.The idea is to allow the router to take a default mock option to override that.
e.g.
By setting this option,
assert_all_mocked
should probably be forced disabled.The text was updated successfully, but these errors were encountered: