Skip to content

Commit

Permalink
[LITE-31298] Bump pytest-httpx dependency to 0.32.*
Browse files Browse the repository at this point in the history
Updated pytest-httpx dependency to version 0.32.* to maintain compatibility. This bump relies on private parts of pytest-httpx to avoid changing the current interface provided by ConnectClientMockers (sync and async). Future versions of pytest-httpx may require an interface update for ConnectClientMockers, so this will need to be monitored in upcoming releases.
  • Loading branch information
Sainomori committed Nov 4, 2024
1 parent 551ed73 commit 64661fc
Show file tree
Hide file tree
Showing 3 changed files with 393 additions and 359 deletions.
5 changes: 3 additions & 2 deletions connect/client/testing/fluent.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import responses
from pytest import MonkeyPatch
from pytest_httpx import HTTPXMock
from pytest_httpx._options import _HTTPXMockOptions
from responses import matchers

from connect.client.fluent import _ConnectClientBase
Expand Down Expand Up @@ -165,7 +166,7 @@ def _get_namespace_class(self):


_monkeypatch = MonkeyPatch()
_async_mocker = HTTPXMock()
_async_mocker = HTTPXMock(_HTTPXMockOptions(assert_all_requests_were_expected=False))


class AsyncConnectClientMocker(ConnectClientMocker):
Expand Down Expand Up @@ -194,7 +195,7 @@ async def mocked_handle_async_request(
)

def reset(self, success=True):
_async_mocker.reset(success)
_async_mocker.reset()
_monkeypatch.undo()

def mock(
Expand Down
Loading

0 comments on commit 64661fc

Please sign in to comment.