16 lines
255 B
Python
16 lines
255 B
Python
import pytest
|
|
from period import create_app
|
|
|
|
@pytest.fixture
|
|
def app():
|
|
app = create_app({
|
|
'TESTING': True
|
|
})
|
|
|
|
@pytest.fixture
|
|
def client(app):
|
|
return app.test_client()
|
|
|
|
@pytest.fixture
|
|
def runner(app):
|
|
return app.test_cli_runner() |