From d4c8e8860aed24fbc34f37aa58e846d54f372c74 Mon Sep 17 00:00:00 2001 From: bartzbeielstein <32470350+bartzbeielstein@users.noreply.github.com> Date: Wed, 25 Mar 2026 20:54:54 +0100 Subject: [PATCH] Potential fix for code scanning alert no. 200: Module is imported with 'import' and 'import from' Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- tests/test_weather_client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_weather_client.py b/tests/test_weather_client.py index 31a849d..6f0fd63 100644 --- a/tests/test_weather_client.py +++ b/tests/test_weather_client.py @@ -77,10 +77,10 @@ def test_import_both(self): def test_dunder_all(self): """spotforecast2_safe.weather.__all__ exposes both classes.""" - import spotforecast2_safe.weather as w + from spotforecast2_safe.weather import __all__ as weather_all - assert "WeatherClient" in w.__all__ - assert "WeatherService" in w.__all__ + assert "WeatherClient" in weather_all + assert "WeatherService" in weather_all def test_weather_service_is_subclass(self): """WeatherService is a subclass of WeatherClient."""