Load config in app() test fixture
This commit is contained in:
parent
cbbc2758c5
commit
1ecb7bce78
9
tests/conftest.py
Normal file
9
tests/conftest.py
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
import pytest
|
||||||
|
|
||||||
|
from atst.app import make_app, make_config
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.fixture
|
||||||
|
def app():
|
||||||
|
config = make_config()
|
||||||
|
return make_app(config)
|
@ -1,10 +1,5 @@
|
|||||||
import pytest
|
import pytest
|
||||||
import tornado.web
|
|
||||||
from atst.app import make_app
|
|
||||||
|
|
||||||
@pytest.fixture
|
|
||||||
def app():
|
|
||||||
return make_app()
|
|
||||||
|
|
||||||
@pytest.mark.gen_test
|
@pytest.mark.gen_test
|
||||||
def test_hello_world(http_client, base_url):
|
def test_hello_world(http_client, base_url):
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
import pytest
|
import pytest
|
||||||
import tornado.web
|
|
||||||
from atst.app import make_app
|
|
||||||
|
|
||||||
@pytest.fixture
|
|
||||||
def app():
|
|
||||||
return make_app()
|
|
||||||
|
|
||||||
@pytest.mark.gen_test
|
@pytest.mark.gen_test
|
||||||
def test_routes(http_client, base_url):
|
def test_routes(http_client, base_url):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user