Skip to content

Commit 3b21164

Browse files
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

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import hypha.apply.funds.urls # noqa: F401 - pre-loads all fund views at collection time

0 commit comments

Comments
 (0)