Skip to content

Commit

Permalink
Reduce reset usage in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin-b committed Sep 19, 2024
1 parent 80fe905 commit 9cc823b
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 180 deletions.
1 change: 1 addition & 0 deletions pytest_httpx/_httpx_mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ def get_request(self, **matchers: Any) -> Optional[httpx.Request]:
), f"More than one request ({len(requests)}) matched, use get_requests instead."
return requests[0] if requests else None

# TODO reset should not expose any parameter
def reset(self, assert_all_responses_were_requested: bool) -> None:
self._requests.clear()
not_called = self._reset_callbacks()
Expand Down
Loading

0 comments on commit 9cc823b

Please sign in to comment.