TP_JO2024/athlete/conftest.py
2024-03-27 11:18:57 +01:00

24 lines
375 B
Python

import pytest
from ..app.app import create_app
@pytest.fixture()
def app():
app = create_app()
app.config.update({
"TESTING": True,
})
# other setup can go here
yield app
# clean up / reset resources here
@pytest.fixture()
def client(app):
return app.test_client()
@pytest.fixture()
def runner(app):
return app.test_cli_runner()