Skip to content

Commit

Permalink
Use test config file in test request context
Browse files Browse the repository at this point in the history
Should have been reverted in 754f5a7 but was missed
  • Loading branch information
alastair committed Mar 29, 2022
1 parent 517aa1c commit bff6b41
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion critiquebrainz/data/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit bff6b41

Please sign in to comment.