Rely on fixture to change app config

This commit is contained in:
Montana 2019-03-14 13:46:52 -04:00
parent 280775fa66
commit ceee1f69d2

View File

@ -144,7 +144,6 @@ def test_no_op_crl_cache_logs_common_name():
def test_expired_crl_raises_CRLInvalidException_with_failover_config_false( def test_expired_crl_raises_CRLInvalidException_with_failover_config_false(
app, ca_file, expired_crl_file, ca_key, make_x509, rsa_key app, ca_file, expired_crl_file, ca_key, make_x509, rsa_key
): ):
app.config.update({"CRL_FAIL_OPEN": False})
client_cert = make_x509(rsa_key(), signer_key=ca_key, cn="chewbacca") client_cert = make_x509(rsa_key(), signer_key=ca_key, cn="chewbacca")
client_pem = client_cert.public_bytes(Encoding.PEM) client_pem = client_cert.public_bytes(Encoding.PEM)
crl_cache = CRLCache(ca_file, crl_locations=[expired_crl_file]) crl_cache = CRLCache(ca_file, crl_locations=[expired_crl_file])