Skip to content

Commit

Permalink
Skip flaky weather alerts tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentame committed Oct 14, 2023
1 parent acc0982 commit b10c498
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_integrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down
4 changes: 4 additions & 0 deletions tests/test_warning.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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."""
Expand All @@ -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."""
Expand Down

0 comments on commit b10c498

Please sign in to comment.