Load config in app() test fixture

This commit is contained in:
richard-dds 2018-06-11 13:54:20 -04:00
parent cbbc2758c5
commit 1ecb7bce78
3 changed files with 9 additions and 10 deletions

9
tests/conftest.py Normal file
View 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)

View File

@ -1,10 +1,5 @@
import pytest
import tornado.web
from atst.app import make_app
@pytest.fixture
def app():
return make_app()
@pytest.mark.gen_test
def test_hello_world(http_client, base_url):

View File

@ -1,10 +1,5 @@
import pytest
import tornado.web
from atst.app import make_app
@pytest.fixture
def app():
return make_app()
@pytest.mark.gen_test
def test_routes(http_client, base_url):