From 28fdaaff74cd15b51716115e3fef3a4186b5df2a Mon Sep 17 00:00:00 2001 From: Matthew Zhou Date: Wed, 11 Jun 2025 17:53:03 -0700 Subject: [PATCH] fix: Fix claude sonnet 3_7 tests (#2767) --- tests/integration_test_send_message.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration_test_send_message.py b/tests/integration_test_send_message.py index 3dee356f..139287a0 100644 --- a/tests/integration_test_send_message.py +++ b/tests/integration_test_send_message.py @@ -371,7 +371,7 @@ def async_client(server_url: str) -> AsyncLetta: yield async_client_instance -@pytest.fixture(scope="module") +@pytest.fixture(scope="function") def agent_state(client: Letta) -> AgentState: """ Creates and returns an agent state for testing with a pre-configured agent. @@ -394,7 +394,7 @@ def agent_state(client: Letta) -> AgentState: client.agents.delete(agent_state_instance.id) -@pytest.fixture(scope="module") +@pytest.fixture(scope="function") def agent_state_no_tools(client: Letta) -> AgentState: """ Creates and returns an agent state for testing with a pre-configured agent.