Skip to content

Commit

Permalink
Reconcile base_test.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls authored and chiatt committed Nov 1, 2024
1 parent 4d28296 commit 03a6804
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/base_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,12 @@ def __init__(self, *args, **kwargs) -> None:
def setup_databases(self, **kwargs):
ret = super().setup_databases(**kwargs)

app_settings() # adds languages to system
prepare_terms_index(create=True)
prepare_concepts_index(create=True)
prepare_search_index(create=True)
# Some tests don't use the database.
if kwargs.get("aliases", None):
app_settings() # adds languages to system
prepare_terms_index(create=True)
prepare_concepts_index(create=True)
prepare_search_index(create=True)

return ret

Expand Down

0 comments on commit 03a6804

Please sign in to comment.