Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
rbeucher committed Oct 3, 2024
1 parent c5d1a2e commit 2d6bba2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_translators.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
DefaultTranslator,
EraiTranslator,
TranslatorError,
_cmip_frequency_translator,
_cmip_realm_translator,
_to_tuple,
frequency_translations,
)


Expand Down Expand Up @@ -67,7 +67,7 @@
def test_cmip_frequency_translator(input, expected):
"""Test translation of entries in the CMIP frequency column"""
series = pd.Series(input)
translated = _cmip_frequency_translator(series)
translated = series.apply(lambda x: frequency_translations.get(x, x))
assert list(translated) == expected


Expand Down

0 comments on commit 2d6bba2

Please sign in to comment.