tests: fix config
This commit is contained in:
parent
30a9e6400a
commit
b2e2cda3ea
@ -38,7 +38,7 @@ def temp_config(tmpdir) -> str:
|
|||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def flask_app(temp_config) -> Flask:
|
def flask_app(temp_config) -> Flask:
|
||||||
os.putenv('WEBPUB1C_CONFIG', temp_config)
|
os.environ['WEBPUB1C_CONFIG'] = temp_config
|
||||||
pub1c = importlib.import_module('pub1c-rest')
|
pub1c = importlib.import_module('pub1c-rest')
|
||||||
return pub1c.app
|
return pub1c.app
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user