Commit 3b21164
authored
Make translate test handle no translate packages installed. (#4786)
This fix loads the urls that loads the views before tests are run. This
avoid them being loaded after @override_settings() have run.
The problem showed up in `test_staff_can_see_translate_primary_action()`
test that have
`@override_settings(APPLICATION_TRANSLATIONS_ENABLED=True)`.
Loading views after
`@override_settings(APPLICATION_TRANSLATIONS_ENABLED=True)` made them
look for translation packages that were not installed resulting in
failed tests.1 parent ed65cd2 commit 3b21164
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments