From f6ab71bfc896c498658256d6e9ff03323bacce4b Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Thu, 19 Dec 2024 02:27:55 +0000 Subject: [PATCH] fix: correct HTTP client mocking in test base class Co-Authored-By: Alex Reibman --- tests/integration/test_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/test_base.py b/tests/integration/test_base.py index bad51abb..e6285484 100644 --- a/tests/integration/test_base.py +++ b/tests/integration/test_base.py @@ -19,8 +19,8 @@ async def async_setup_method(self, method): client = Client() client.configure(api_key="test-key") config = client._config + config.http_client = self.mock_req # Set mock on config instead of session self.session = Session(session_id=uuid4(), config=config) - self.session.client.http_client = self.mock_req async def teardown_method(self, method): """Clean up after test."""