2018-04-13 02:06:02 +08:00
|
|
|
import pytest
|
|
|
|
|
|
|
|
from js_example import app
|
|
|
|
|
|
|
|
|
2019-05-07 03:39:41 +08:00
|
|
|
@pytest.fixture(name="app")
|
2018-04-13 02:06:02 +08:00
|
|
|
def fixture_app():
|
|
|
|
app.testing = True
|
|
|
|
yield app
|
|
|
|
app.testing = False
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.fixture
|
|
|
|
def client(app):
|
|
|
|
return app.test_client()
|