fix: use TestClient as context manager to trigger lifespan

This commit is contained in:
2026-03-18 15:05:01 -05:00
parent 9b1108da5c
commit ea3da00b95
5 changed files with 15 additions and 10 deletions

View File

@@ -32,7 +32,7 @@ class TestAgentConstruction:
agent = Agent(model=mock_model)
assert agent.config.max_iterations == 10
assert agent.config.max_iterations == 200
assert "helpful assistant" in agent.config.system_prompt
assert agent.tools == []