Skip to content

Commit 9ab40a3

Browse files
committed
coverage
1 parent 8f278ed commit 9ab40a3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/models/anthropic/test_output.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -380,10 +380,9 @@ async def get_user_country() -> str:
380380

381381
result = await agent.run('What language is spoken in the user country?')
382382
# Should return CountryLanguage since we asked about language
383-
assert isinstance(result.output, city_location_schema | country_language_schema)
384-
if isinstance(result.output, country_language_schema):
385-
assert result.output.country == 'France' # type: ignore[attr-defined]
386-
assert result.output.language == 'French' # type: ignore[attr-defined]
383+
assert isinstance(result.output, country_language_schema), 're run test until llm outputs country_language_schema'
384+
assert result.output.country == 'France' # type: ignore[attr-defined]
385+
assert result.output.language == 'French' # type: ignore[attr-defined]
387386

388387

389388
async def test_anthropic_auto_mode_sonnet_4_5(

0 commit comments

Comments
 (0)