Skip to content

Building AI agents, atomically

fix prompt generator test

KennyVaneetveldee824761fa576
diff --git a/tests/lib/components/test_system_prompt_generator.py b/tests/lib/components/test_system_prompt_generator.py
index 615d1c2..86109cd 100644
--- a/tests/lib/components/test_system_prompt_generator.py
+++ b/tests/lib/components/test_system_prompt_generator.py
@@ -119,7 +119,8 @@ class TestSystemPromptGeneratorBasic:
empty_info = SystemPromptInfo(background=[])
empty_generator = SystemPromptGenerator(empty_info)
prompt = empty_generator.generate_prompt()
- assert prompt == "# OUTPUT INSTRUCTIONS\n- Always respond using the proper JSON schema.\n- Always use the available additional information and context to enhance the response.\n\n"
+ expected_prompt = "# OUTPUT INSTRUCTIONS\n- Always respond using the proper JSON schema.\n- Always use the available additional information and context to enhance the response."
+ assert prompt == expected_prompt
def test_partial_system_prompt_info(self):
partial_info = SystemPromptInfo(
@@ -205,4 +206,7 @@ class TestSystemPromptGeneratorContextProviders:
assert "## Provider 1" in prompt
assert "Info 1" in prompt
assert "## Provider 2" in prompt
- assert "Info 2" in prompt
\ No newline at end of file
+ assert "Info 2" in prompt
+
+if __name__ == '__main__':
+ pytest.main()
\ No newline at end of file