Fix tests

This commit is contained in:
Twisha Bansal
2026-02-03 16:16:53 +05:30
parent cee59d52c3
commit 911069ae8d
2 changed files with 3 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
Final Client Response:
AI:
Booking Confirmed!
Booking Confirmed
Loyalty Points
POLICY CHECK: Intercepting 'book-hotel'
POLICY CHECK: Intercepting 'update-hotel'

View File

@@ -54,5 +54,6 @@ class TestExecution:
def test_keywords_in_output(self, script_output, golden_keywords):
"""Test that expected keywords are present in the script's output."""
output = script_output.out
print(f"\nAgent Output:\n{output}\n")
missing_keywords = [kw for kw in golden_keywords if kw not in output]
assert not missing_keywords, f"Missing keywords in output: {missing_keywords}"