From 911069ae8dbe48c2fd6ee4a7ad2c7ae988f7a0c4 Mon Sep 17 00:00:00 2001 From: Twisha Bansal Date: Tue, 3 Feb 2026 16:16:53 +0530 Subject: [PATCH] Fix tests --- docs/en/samples/pre_post_processing/golden.txt | 4 ++-- docs/en/samples/pre_post_processing/python/agent_test.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/en/samples/pre_post_processing/golden.txt b/docs/en/samples/pre_post_processing/golden.txt index 4ddacc4443..532a72fade 100644 --- a/docs/en/samples/pre_post_processing/golden.txt +++ b/docs/en/samples/pre_post_processing/golden.txt @@ -1,5 +1,5 @@ Final Client Response: AI: -Booking Confirmed! +Booking Confirmed Loyalty Points -POLICY CHECK: Intercepting 'book-hotel' +POLICY CHECK: Intercepting 'update-hotel' diff --git a/docs/en/samples/pre_post_processing/python/agent_test.py b/docs/en/samples/pre_post_processing/python/agent_test.py index 0a94e8a1e3..727c074739 100644 --- a/docs/en/samples/pre_post_processing/python/agent_test.py +++ b/docs/en/samples/pre_post_processing/python/agent_test.py @@ -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}"