Skip to content

Commit

Permalink
fix: create tables required by @before_request hook load_instance_con…
Browse files Browse the repository at this point in the history
…fig()
  • Loading branch information
wbaid committed Oct 22, 2019
1 parent 0db9f22 commit b5d493c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions securedrop/tests/test_i18n.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ def __getattr__(self, name):
return getattr(config, name)
not_translated = 'code hello i18n'
with source_app.create_app(Config()).test_client() as c:
with c.application.app_context():
db.create_all()
c.get('/')
assert not_translated == gettext(not_translated)

Expand Down

0 comments on commit b5d493c

Please sign in to comment.