diff --git a/critiquebrainz/data/utils.py b/critiquebrainz/data/utils.py index 4f5b9ac36..a462b18a0 100644 --- a/critiquebrainz/data/utils.py +++ b/critiquebrainz/data/utils.py @@ -112,7 +112,9 @@ def with_test_request_context(f): @wraps(f) def decorated(*args, **kwargs): - with frontend.create_app().test_request_context(): + with frontend.create_app(config_path=os.path.join( + os.path.dirname(os.path.realpath(__file__)), + '..', '..', 'test_config.py')).test_request_context(): return f(*args, **kwargs) return decorated