flask/examples/javascript/tests/conftest.py
Mark Mayo dde76ea960 pylint issues resolved
Ran tests, and black afterwards. Updated changes.rst and included pre-commit hooks as required.  Ran isort on imports.
2022-10-13 18:15:15 +13:00

14 lines
215 B
Python

import pytest
from js_example import app
@pytest.fixture(name="app")
def fixture_app():
app.testing = True
yield app
app.testing = False
@pytest.fixture
def client(app):
return app.test_client()