Skip to content

Commit

Permalink
update i18n tests
Browse files Browse the repository at this point in the history
  • Loading branch information
meeb committed May 25, 2024
1 parent 8313a69 commit 0dd5b1e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/test_renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,13 +368,13 @@ def test_i18n(self):
if not settings.USE_I18N:
self._skip('settings.USE_I18N')
return
settings.LANGUAGES = [
('en', 'English'),
('fr', 'French'),
('de', 'German'),
settings.DISTILL_LANGUAGES = [
'en',
'fr',
'de',
]
expected = {}
for lang_code, lang_name in settings.LANGUAGES:
for lang_code, lang_name in settings.DISTILL_LANGUAGES:
expected[lang_code] = f'/{lang_code}/path/i18n/sub-url-with-i18n-prefix'
view = self._get_view('test-url-i18n')
assert view
Expand Down Expand Up @@ -412,7 +412,7 @@ def _blackhole(_):
for expected_file in expected_files:
filepath = os.path.join(tmpdirname, *expected_file)
self.assertIn(filepath, written_files)
settings.LANGUAGES = []
settings.DISTILL_LANGUAGES = []

def test_kwargs(self):
if not settings.HAS_PATH:
Expand Down

0 comments on commit 0dd5b1e

Please sign in to comment.