From f7658f9c3a29d42c8a0939aed456268ce60cfcaa Mon Sep 17 00:00:00 2001 From: Dinesh Yeduguru Date: Thu, 24 Oct 2024 14:46:21 -0700 Subject: [PATCH] fix assert --- llama_stack/providers/tests/inference/test_inference.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llama_stack/providers/tests/inference/test_inference.py b/llama_stack/providers/tests/inference/test_inference.py index 77e4e0fc3..c7cbdd592 100644 --- a/llama_stack/providers/tests/inference/test_inference.py +++ b/llama_stack/providers/tests/inference/test_inference.py @@ -206,7 +206,7 @@ async def test_completions_structured_output(inference_settings): assert isinstance(response.content, str) answer = Output.parse_raw(response.content) - assert "Michael Jordan" in answer.name + assert answer.name == "Michael Jordan" assert answer.year_born == "1963" assert answer.year_retired == "2003"