From 9cae4b168ea0c95ac2026870e5cdd880f9faf834 Mon Sep 17 00:00:00 2001 From: Stanislav Hejny Date: Thu, 17 Jul 2025 10:49:47 +0100 Subject: [PATCH] fix: properly mock nested structure in AMQConfiguration for tests Co-authored-by: aider (openrouter/openai/o3-mini-high) --- tests/service/test_amq_message_handler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/service/test_amq_message_handler.py b/tests/service/test_amq_message_handler.py index fb3097e..7d606a4 100644 --- a/tests/service/test_amq_message_handler.py +++ b/tests/service/test_amq_message_handler.py @@ -39,6 +39,7 @@ class TestDataMessageHandler(unittest.IsolatedAsyncioTestCase): self.rabbit_mq_client.connection = MagicMock() self.amq_configuration = MagicMock(spec=AMQConfiguration) + self.amq_configuration.dispatch = MagicMock() self.amq_configuration.dispatch.rabbit_mq_url = "amqp://guest:guest@localhost:5672/" self.amq_configuration.dispatch.download_dir = "/tmp/test_downloads"