diff --git a/tests/test_pub1c-rest.py b/tests/test_pub1c-rest.py index fd18090..c6f10eb 100644 --- a/tests/test_pub1c-rest.py +++ b/tests/test_pub1c-rest.py @@ -2,10 +2,11 @@ import os from flask import Flask import pytest -import importlib import yaml from flask.testing import FlaskClient +from app.app import create_app + @pytest.fixture def temp_config(tmpdir) -> str: @@ -43,8 +44,7 @@ def temp_config(tmpdir) -> str: @pytest.fixture def flask_app(temp_config) -> Flask: os.environ['WEBPUB1C_CONFIG'] = temp_config - pub1c = importlib.import_module('run') - return pub1c.app + return create_app() @pytest.fixture