Skip to content

Commit

Permalink
Check .mo rather than .po files in TestListLocalizedEntities
Browse files Browse the repository at this point in the history
Now that `.po` files are no longer included in distribution bundles
(#2243), having this test look
at `.po` files makes things slightly more difficult for downstream
distributors such as Debian, since we run the tests on the equivalent of
the built wheel.
  • Loading branch information
cjwatson committed Feb 6, 2025
1 parent 3e9c8f0 commit 051767c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Chanran Kim
Chris McKeague
Chris Turra
Christian Alexander
Colin Watson
Dan Gentry
Daniel Musketa
Daniël Niemeijer
Expand Down
4 changes: 2 additions & 2 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ def assertLocalizedEntities(self, localized_entities, supported_entities): # no
for entity_code in supported_entities.keys():
actual_languages = sorted(
# Collect `<locale>` part from
# holidays/locale/<locale>/LC_MESSAGES/<country_code>.po.
# holidays/locale/<locale>/LC_MESSAGES/<country_code>.mo.
path.parts[-3]
for path in Path(locale_dir).rglob(f"{entity_code}.po")
for path in Path(locale_dir).rglob(f"{entity_code}.mo")
)
expected_languages = localized_entities.get(entity_code, [])

Expand Down

0 comments on commit 051767c

Please sign in to comment.