mirror of
https://github.com/simple-login/app.git
synced 2025-10-09 14:56:40 +08:00
fix test
This commit is contained in:
parent
c132e3fbbc
commit
b9d26d46f6
1 changed files with 9 additions and 8 deletions
|
@ -48,6 +48,7 @@ def flask_app():
|
||||||
def flask_client():
|
def flask_client():
|
||||||
transaction = connection.begin()
|
transaction = connection.begin()
|
||||||
|
|
||||||
|
with app.app_context():
|
||||||
try:
|
try:
|
||||||
client = app.test_client()
|
client = app.test_client()
|
||||||
yield client
|
yield client
|
||||||
|
|
Loading…
Add table
Reference in a new issue