Skip to content
Myr

conftest.py

This file

Path

examples/javascript/tests/conftest.py

15 lines · 216 bytes · Python

Last changed by

Merge pull request #2699 from pallets/javascriptDavid Lordbefore adoption746b91d

History of this file

Take it

Merge pull request #2699 from pallets/javascriptDavid Lordbefore adoption746b91d

lines 1–15why, one step back
1import pytest
23from js_example import app456@pytest.fixture(name='app')7def fixture_app():8 app.testing = True9 yield app10 app.testing = False111213@pytest.fixture14def client(app):15 return app.test_client()