From b2e2cda3ea53f29058728293ae0209d947963a3a Mon Sep 17 00:00:00 2001 From: Dmitry Date: Wed, 22 Sep 2021 14:48:05 +0300 Subject: [PATCH] tests: fix config --- tests/test_pub1c-rest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_pub1c-rest.py b/tests/test_pub1c-rest.py index 6aa8b4b..0fed42f 100644 --- a/tests/test_pub1c-rest.py +++ b/tests/test_pub1c-rest.py @@ -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