8000 test: make litellm integ test more robust (#14) · Unshure/sdk-python@44c0c03 · GitHub
[go: up one dir, main page]

Skip to content

Commit 44c0c03

Browse files
authored
test: make litellm integ test more robust (strands-agents#14)
1 parent 98ed211 commit 44c0c03

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

tests-integ/test_model_litellm.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,12 @@ def tool_weather() -> str:
2424

2525

2626
@pytest.fixture
27-
def system_prompt():
28-
return "You are an AI assistant that uses & instead of ."
29-
30-
31-
@pytest.fixture
32-
def agent(model, tools, system_prompt):
33-
return Agent(model=model, tools=tools, system_prompt=system_prompt)
27+
def agent(model, tools):
28+
return Agent(model=model, tools=tools)
3429

3530

3631
def test_agent(agent):
3732
result = agent("What is the time and weather in New York?")
3833
text = result.message["content"][0]["text"].lower()
3934

40-
assert all(string in text for string in ["12:00", "sunny", "&"])
35+
assert all(string in text for string in ["12:00", "sunny"])

0 commit comments

Comments
 (0)
0