Skip to content

Commit

Permalink
Merge branch 'test-request-context-config'
Browse files Browse the repository at this point in the history
  • Loading branch information
alastair committed Mar 29, 2022
2 parents 949374a + bff6b41 commit 5658326
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 5658326

Please sign in to comment.