Skip to content

Building AI agents, atomically

fix: use result variable in test to satisfy flake8

KennyVaneetveldebb56d24b3318
diff --git a/atomic-agents/tests/agents/test_atomic_agent.py b/atomic-agents/tests/agents/test_atomic_agent.py
index 639e49c..41cc40c 100644
--- a/atomic-agents/tests/agents/test_atomic_agent.py
+++ b/atomic-agents/tests/agents/test_atomic_agent.py
@@ -340,6 +340,9 @@ def test_messages_sync_after_run(mock_instructor, mock_system_prompt_generator):
result = agent.run(mock_input)
+ # Verify the result is returned correctly
+ assert result.chat_message == "Test output"
+
# Verify agent.messages is in sync with history.get_history()
history_messages = agent.history.get_history()