2018-04-12 11:06:02 -07:00
|
|
|
import pytest
|
|
|
|
|
|
|
|
|
|
from js_example import app
|
|
|
|
|
|
|
|
|
|
|
2019-05-06 15:39:41 -04:00
|
|
|
@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
|
|
|
|
|
def client(app):
|
|
|
|
|
return app.test_client()
|