From f2ecb5a33fc0b50eec32433c47e99735c7e0d0b3 Mon Sep 17 00:00:00 2001 From: Bobby Noelte Date: Mon, 11 Nov 2024 21:28:53 +0100 Subject: [PATCH] Skip test for pv forecast timezone behaviour on Windows. (#195) The 'other_timezone' fixture does not work on Windows. Skip the test case. Signed-off-by: Bobby Noelte --- tests/test_pv_forecast.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_pv_forecast.py b/tests/test_pv_forecast.py index 4c2c8e7..cb2fdac 100644 --- a/tests/test_pv_forecast.py +++ b/tests/test_pv_forecast.py @@ -25,6 +25,7 @@ Usage: """ import json +import sys from datetime import datetime, timedelta from pathlib import Path @@ -252,6 +253,9 @@ def test_report_ac_power_and_measurement(pv_forecast_instance, sample_forecast_r assert report == sample_forecast_report +@pytest.mark.skipif( + sys.platform.startswith("win"), reason="'other_timezone' fixture not supported on Windows" +) def test_timezone_behaviour( pv_forecast_instance, sample_forecast_report, sample_forecast_start, other_timezone ):