From 35aa61c651217663406c9cd6df404f85338b2d68 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Thu, 2 Apr 2026 14:17:43 +0900 Subject: style: fix lint and formatting issues across news collector and shared --- services/news-collector/tests/test_main.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'services/news-collector/tests/test_main.py') diff --git a/services/news-collector/tests/test_main.py b/services/news-collector/tests/test_main.py index 3ebb094..66190dc 100644 --- a/services/news-collector/tests/test_main.py +++ b/services/news-collector/tests/test_main.py @@ -1,5 +1,5 @@ """Tests for news collector scheduler.""" -import pytest + from unittest.mock import AsyncMock, MagicMock from datetime import datetime, timezone from shared.models import NewsCategory, NewsItem @@ -8,9 +8,11 @@ from news_collector.main import run_collector_once async def test_run_collector_once_stores_and_publishes(): mock_item = NewsItem( - source="test", headline="Test news", + source="test", + headline="Test news", published_at=datetime(2026, 4, 2, tzinfo=timezone.utc), - sentiment=0.5, category=NewsCategory.MACRO, + sentiment=0.5, + category=NewsCategory.MACRO, ) mock_collector = MagicMock() mock_collector.name = "test" -- cgit v1.2.3