Use pytest fixture for app with non default configs

This commit is contained in:
Montana
2019-03-13 16:36:52 -04:00
parent a1ebedb382
commit 5782c30a7d
2 changed files with 9 additions and 4 deletions

View File

@@ -164,6 +164,13 @@ def queue():
atst_queue.get_queue().empty()
@pytest.fixture
def crl_failover_open_app(app):
app.config.update({"CRL_FAIL_OPEN": True})
yield app
app.config.update({"CRL_FAIL_OPEN": False})
@pytest.fixture
def rsa_key():
def _rsa_key():