From 65bebbcfedaab4604717fbf79e4a7fdb89e5f3a6 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 17 Mar 2026 19:58:06 +0000 Subject: [PATCH] test: mark live yfinance network tests as integration TestYfinanceIndustryPerformance, TestRouteToVendorFallback, and TestFallbackRouting all make live HTTP calls to yfinance (yfinance.Sector / market movers). Mark them @pytest.mark.integration so they're skipped in standard offline runs. https://claude.ai/code/session_01TuPpssTo83whKkNgSu57HH --- tests/test_scanner_fallback.py | 2 ++ tests/test_scanner_routing.py | 1 + 2 files changed, 3 insertions(+) diff --git a/tests/test_scanner_fallback.py b/tests/test_scanner_fallback.py index 134be897..fe6f51ef 100644 --- a/tests/test_scanner_fallback.py +++ b/tests/test_scanner_fallback.py @@ -54,6 +54,7 @@ class TestYfinanceSectorPerformance: assert "Error:" not in day_pct, f"Error in 1-day for {cols[0]}: {day_pct}" +@pytest.mark.integration class TestYfinanceIndustryPerformance: """Verify yfinance industry performance uses index for ticker symbols.""" @@ -94,6 +95,7 @@ class TestAlphaVantageFailoverRaise: get_industry_performance_alpha_vantage("technology") +@pytest.mark.integration class TestRouteToVendorFallback: """Verify route_to_vendor falls back from AV to yfinance.""" diff --git a/tests/test_scanner_routing.py b/tests/test_scanner_routing.py index 4a4b1aec..6593ef77 100644 --- a/tests/test_scanner_routing.py +++ b/tests/test_scanner_routing.py @@ -50,6 +50,7 @@ class TestScannerRouting: assert "News" in result +@pytest.mark.integration class TestFallbackRouting: def setup_method(self):