Skip to content

Commit

Permalink
Managing httpx expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
mephenor committed Dec 11, 2024
1 parent a21f472 commit 4028d6a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/integration/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
pytest.mark.asyncio,
pytest.mark.httpx_mock(
assert_all_responses_were_requested=False,
assert_all_requests_were_expected=False,
can_send_already_matched_responses=True,
should_mock=lambda request: request.url.host not in unintercepted_hosts,
),
Expand Down
5 changes: 4 additions & 1 deletion tests/unit/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@
from ghga_connector.core.api_calls import is_service_healthy


@pytest.mark.httpx_mock(assert_all_responses_were_requested=False)
@pytest.mark.httpx_mock(
assert_all_responses_were_requested=False,
assert_all_requests_were_expected=False,
)
@pytest.mark.parametrize(
"api_url,timeout_in_seconds,expected_response",
[
Expand Down

0 comments on commit 4028d6a

Please sign in to comment.