From b10c4989455e24bedecc96d827c33926403ab10b Mon Sep 17 00:00:00 2001 From: Quentame Date: Sat, 14 Oct 2023 13:20:06 +0000 Subject: [PATCH] Skip flaky weather alerts tests --- tests/test_integrations.py | 1 + tests/test_warning.py | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/tests/test_integrations.py b/tests/test_integrations.py index 143347eb..97aa78a2 100644 --- a/tests/test_integrations.py +++ b/tests/test_integrations.py @@ -6,6 +6,7 @@ from meteofrance_api.helpers import readeable_phenomenoms_dict +@pytest.mark.skip(reason="Returns 502 Server Error: Bad Gateway from summer 2023") @pytest.mark.parametrize("city", ["montreal", "Foix"]) def test_workflow(city: str) -> None: """Test classical workflow usage with the Python library.""" diff --git a/tests/test_warning.py b/tests/test_warning.py index 3ca9386c..f6ad16ee 100644 --- a/tests/test_warning.py +++ b/tests/test_warning.py @@ -10,6 +10,7 @@ WARNING_COLOR_LIST = [1, 2, 3, 4] +@pytest.mark.skip(reason="Returns 502 Server Error: Bad Gateway from summer 2023") def test_currentphenomenons(requests_mock: Mock) -> None: """Test basic weather alert results from API.""" client = MeteoFranceClient() @@ -41,6 +42,7 @@ def test_currentphenomenons(requests_mock: Mock) -> None: assert current_phenomenoms.get_domain_max_color() == 3 +@pytest.mark.skip(reason="Returns 502 Server Error: Bad Gateway from summer 2023") def test_fulls() -> None: """Test advanced weather alert results from API.""" client = MeteoFranceClient() @@ -74,6 +76,7 @@ def test_thumbnail() -> None: ) +@pytest.mark.skip(reason="Returns 502 Server Error: Bad Gateway from summer 2023") @pytest.mark.parametrize("dep, res", [("13", True), ("32", False)]) def test_currentphenomenons_with_coastal_bulletin(dep: str, res: bool) -> None: """Test getting a complete basic bulletin for coastal department.""" @@ -89,6 +92,7 @@ def test_currentphenomenons_with_coastal_bulletin(dep: str, res: bool) -> None: assert has_coastal_phenomenom == res +@pytest.mark.skip(reason="Returns 502 Server Error: Bad Gateway from summer 2023") @pytest.mark.parametrize("dep, res", [("13", True), ("32", False)]) def test_full_with_coastal_bulletint(dep: str, res: bool) -> None: """Test getting a complete advanced bulletin for coastal department."""