Skip to content

Commit f9315ae

Browse files
committed
fix error expectation
1 parent 7718b18 commit f9315ae

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tests/integration_tests/test_guard.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -781,8 +781,9 @@ class Task(BaseModel):
781781
assert dict_o == {"status": "not started"}
782782

783783
guard = gd.Guard.from_pydantic(Task)
784-
with pytest.raises(ValueError):
785-
guard(
786-
get_static_openai_create_func(),
787-
prompt="What is the status of this task REALLY?",
788-
)
784+
response = guard(
785+
get_static_openai_create_func(),
786+
prompt="What is the status of this task REALLY?",
787+
)
788+
789+
assert response.error is not None

0 commit comments

Comments
 (0)