Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the language type given to CatalogRepository in tests #12853

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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) == []