2022-04-15 02:47:27 +00:00
|
|
|
import pytest
|
|
|
|
from period import create_app
|
|
|
|
|
|
|
|
@pytest.fixture
|
|
|
|
def app():
|
|
|
|
app = create_app({
|
|
|
|
'TESTING': True
|
|
|
|
})
|
|
|
|
|
2022-04-15 03:34:40 +00:00
|
|
|
yield app
|
|
|
|
|
2022-04-15 02:47:27 +00:00
|
|
|
@pytest.fixture
|
|
|
|
def client(app):
|
|
|
|
return app.test_client()
|
|
|
|
|
|
|
|
@pytest.fixture
|
|
|
|
def runner(app):
|
2022-04-15 03:34:40 +00:00
|
|
|
return app.test_cli_runner()
|