refactor tests

This commit is contained in:
2023-06-13 01:05:13 +02:00
parent 7708724dd3
commit a1f78619fa
3 changed files with 12 additions and 12 deletions

View File

@@ -36,21 +36,21 @@ def auth(client):
@pytest.fixture
def app(admin_user, admin_password):
socketio, app = application.create_app("testing")
app = application.create_app("testing")
app.test_client_class = FlaskLoginClient
with app.app_context():
db_seed(db, admin_user, admin_password)
return socketio, app
return app
@pytest.fixture
def client(app):
return app[1].test_client()
return app.test_client()
@pytest.fixture
def runner(app):
return app[1].test_cli_runner()
return app.test_cli_runner()
@pytest.fixture