From 316cf7e5819a23c7e0c28185041ebb610b25ce23 Mon Sep 17 00:00:00 2001
From: Dmitry <b4tm4n@mail.ru>
Date: Thu, 7 Oct 2021 14:38:38 +0300
Subject: [PATCH] fix create_app import in tests

---
 tests/test_pub1c-rest.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

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