Linting. (#191)
parent
c20553ce68
commit
ea889ce2ad
|
@ -1153,8 +1153,7 @@ class ACMEClient(object):
|
||||||
|
|
||||||
if cert['cert'] is not None:
|
if cert['cert'] is not None:
|
||||||
pem_cert = cert['cert']
|
pem_cert = cert['cert']
|
||||||
|
chain = list(cert.get('chain', []))
|
||||||
chain = [link for link in cert.get('chain', [])]
|
|
||||||
|
|
||||||
if self.dest and write_file(self.module, self.dest, pem_cert.encode('utf8')):
|
if self.dest and write_file(self.module, self.dest, pem_cert.encode('utf8')):
|
||||||
self.cert_days = get_cert_days(self.module, self.dest)
|
self.cert_days = get_cert_days(self.module, self.dest)
|
||||||
|
|
|
@ -78,7 +78,7 @@ def test_pack_asn_invalid_class():
|
||||||
@pytest.mark.parametrize('value, expected', TEST_CASES)
|
@pytest.mark.parametrize('value, expected', TEST_CASES)
|
||||||
def test_test_cases(value, expected, tmp_path):
|
def test_test_cases(value, expected, tmp_path):
|
||||||
test_file = tmp_path / 'test.der'
|
test_file = tmp_path / 'test.der'
|
||||||
subprocess.run(['openssl', 'asn1parse', '-genstr', value, '-noout', '-out', test_file])
|
subprocess.run(['openssl', 'asn1parse', '-genstr', value, '-noout', '-out', test_file], check=True)
|
||||||
|
|
||||||
with open(test_file, mode='rb') as fd:
|
with open(test_file, mode='rb') as fd:
|
||||||
b_data = fd.read()
|
b_data = fd.read()
|
||||||
|
|
Loading…
Reference in New Issue