Use pytest fixture for app with non default configs
This commit is contained in:
@@ -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():
|
||||
|
Reference in New Issue
Block a user