Tweaking client
This commit is contained in:
@@ -32,7 +32,9 @@ def app(request):
|
|||||||
|
|
||||||
@pytest.fixture(scope='session')
|
@pytest.fixture(scope='session')
|
||||||
def client(app):
|
def client(app):
|
||||||
return app.test_client()
|
with app.test_client() as client:
|
||||||
|
yield client
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope='function')
|
@pytest.fixture(scope='function')
|
||||||
def session(request):
|
def session(request):
|
||||||
|
|||||||
Reference in New Issue
Block a user