Skip to content

Commit

Permalink
Change the language type given to CatalogRepository in tests (#12853)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamtheturtle authored Sep 2, 2024
1 parent e35e7b0 commit 15aadd6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_util/test_util_i18n.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,13 @@ def test_CatalogRepository(tmp_path):
assert sorted(c.domain for c in repo.catalogs) == []

# no languages
repo = i18n.CatalogRepository(tmp_path, ['loc1', 'loc2'], None, 'utf-8')
repo = i18n.CatalogRepository(tmp_path, ['loc1', 'loc2'], '', 'utf-8')
assert sorted(c.domain for c in repo.catalogs) == []

# unknown locale_dirs
repo = i18n.CatalogRepository(tmp_path, ['loc3'], None, 'utf-8')
repo = i18n.CatalogRepository(tmp_path, ['loc3'], '', 'utf-8')
assert sorted(c.domain for c in repo.catalogs) == []

# no locale_dirs
repo = i18n.CatalogRepository(tmp_path, [], None, 'utf-8')
repo = i18n.CatalogRepository(tmp_path, [], '', 'utf-8')
assert sorted(c.domain for c in repo.catalogs) == []

0 comments on commit 15aadd6

Please sign in to comment.