From 03a6804a2a5953b2d9f16c8f6427953672f93351 Mon Sep 17 00:00:00 2001 From: Jacob Walls Date: Fri, 2 Aug 2024 09:47:22 -0400 Subject: [PATCH] Reconcile base_test.py --- tests/base_test.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/base_test.py b/tests/base_test.py index d9d15faac..7207443a0 100644 --- a/tests/base_test.py +++ b/tests/base_test.py @@ -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