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()