tests: fix config

This commit is contained in:
Dmitry Belyaev 2021-09-22 14:48:05 +03:00
parent 30a9e6400a
commit b2e2cda3ea
Signed by: b4tman
GPG Key ID: 41A00BF15EA7E5F3

View File

@ -38,7 +38,7 @@ def temp_config(tmpdir) -> str:
@pytest.fixture
def flask_app(temp_config) -> Flask:
os.putenv('WEBPUB1C_CONFIG', temp_config)
os.environ['WEBPUB1C_CONFIG'] = temp_config
pub1c = importlib.import_module('pub1c-rest')
return pub1c.app