Skip to content

Commit

Permalink
fix: typos readeable -> readable (#772)
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentame authored Oct 27, 2024
1 parent 0b35302 commit e23ae86
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/meteofrance_api/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def is_valid_warning_department(department_number: str) -> bool:
return department_number in VALID_DEPARTMENT_LIST


def readeable_phenomenons_dict(
def readable_phenomenons_dict(
list_phenomenons: List[PhenomenonMaxColor], language: str = "fr"
) -> Dict[Optional[str], Optional[str]]:
"""Create a dictionary with human readable keys and values (Helper).
Expand Down
6 changes: 3 additions & 3 deletions tests/test_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from meteofrance_api.helpers import get_warning_text_status_from_indice_color
from meteofrance_api.helpers import is_coastal_department
from meteofrance_api.helpers import is_valid_warning_department
from meteofrance_api.helpers import readeable_phenomenons_dict
from meteofrance_api.helpers import readable_phenomenons_dict
from meteofrance_api.helpers import sort_places_versus_distance_from_coordinates
from meteofrance_api.model import Place
from meteofrance_api.model.place import PlaceData
Expand Down Expand Up @@ -58,7 +58,7 @@ def test_is_valid_warning_department(dep: str, res: bool) -> None:
assert is_valid_warning_department(dep) == res


def test_readeable_phenomenons_dict() -> None:
def test_readable_phenomenons_dict() -> None:
"""Test the helper constructing a human readable dictionary for phenomenon."""
api_list = [
PhenomenonMaxColor(phenomenon_id="4", phenomenon_max_color_id=1),
Expand All @@ -76,7 +76,7 @@ def test_readeable_phenomenons_dict() -> None:
"Vent violent": "Orange",
}

assert readeable_phenomenons_dict(api_list) == expected_dictionary
assert readable_phenomenons_dict(api_list) == expected_dictionary


def test_sort_places_versus_distance_from_coordinates() -> None:
Expand Down
4 changes: 2 additions & 2 deletions tests/test_integrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pytest

from meteofrance_api import MeteoFranceClient
from meteofrance_api.helpers import readeable_phenomenons_dict
from meteofrance_api.helpers import readable_phenomenons_dict


@pytest.mark.parametrize("city", ["Montréal", "Foix"])
Expand Down Expand Up @@ -38,7 +38,7 @@ def test_workflow(city: str) -> None:
my_place_weather_alerts = client.get_warning_current_phenomenons(
my_place.admin2
)
readable_warnings = readeable_phenomenons_dict(
readable_warnings = readable_phenomenons_dict(
my_place_weather_alerts.phenomenons_max_colors
)

Expand Down

0 comments on commit e23ae86

Please sign in to comment.