Skip to content

Commit a53aba5

Browse files
fix a test
1 parent 492dc29 commit a53aba5

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

tests/openai_agents/basic/test_hello_world_workflow.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,9 @@ async def test_execute_workflow(client: Client, mock_model: bool):
4040
id=str(uuid.uuid4()),
4141
task_queue=task_queue_name,
4242
)
43-
assert result == "This is a haiku (not really)"
43+
44+
if mock_model:
45+
assert result == "This is a haiku (not really)"
46+
else:
47+
assert isinstance(result, str)
48+
assert len(result) > 0

0 commit comments

Comments
 (0)