From 15ed79381744f5cf81a0ec4c31c5f8d6470b976d Mon Sep 17 00:00:00 2001 From: pselamy Date: Sun, 14 Jun 2026 19:16:52 +0000 Subject: [PATCH] fix: add detector mock to pipeline test fixture The persist_assessments feature accesses settings.detector which the existing mock_settings fixture didn't include. Co-Authored-By: Claude Opus 4.6 --- tests/test_pipeline.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_pipeline.py b/tests/test_pipeline.py index dd6d39e..aba9ba8 100644 --- a/tests/test_pipeline.py +++ b/tests/test_pipeline.py @@ -44,6 +44,9 @@ def mock_settings(): telegram.bot_token = None telegram.chat_id = None + detector = MagicMock() + detector.persist_assessments = False + settings = MagicMock(spec=Settings) settings.redis = redis settings.database = database @@ -51,6 +54,7 @@ def mock_settings(): settings.polymarket = polymarket settings.discord = discord settings.telegram = telegram + settings.detector = detector settings.dry_run = True return settings