Skip to content

Commit

Permalink
fix: correct HTTP client mocking in test base class
Browse files Browse the repository at this point in the history
Co-Authored-By: Alex Reibman <[email protected]>
  • Loading branch information
devin-ai-integration[bot] and areibman committed Dec 19, 2024
1 parent dc4976d commit f6ab71b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/integration/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down

0 comments on commit f6ab71b

Please sign in to comment.