cycles/tests/conftest.py

19 lines
271 B
Python

import pytest
from period import create_app
@pytest.fixture
def app():
app = create_app({
'TESTING': True
})
yield app
@pytest.fixture
def client(app):
return app.test_client()
@pytest.fixture
def runner(app):
return app.test_cli_runner()