flask/examples/javascript/tests/conftest.py

16 lines
218 B
Python
Raw Normal View History

2018-04-12 11:06:02 -07:00
import pytest
from js_example import app
@pytest.fixture(name="app")
2018-04-12 11:06:02 -07:00
def fixture_app():
app.testing = True
yield app
app.testing = False
@pytest.fixture
2024-06-19 16:42:19 +02:00
def client(app_):
return app_.test_client()