Delete dead code in unit tests (#1510)
This commit is contained in:
parent
bb0c229d7e
commit
acd2701fa2
|
@ -38,7 +38,6 @@ class TestAsyncIssuerPlugin(IssuerPlugin):
|
|||
return "", "", 12345
|
||||
|
||||
def get_ordered_certificate(self, pending_cert):
|
||||
order_id = pending_cert.external_id
|
||||
return INTERNAL_VALID_LONG_STR, INTERNAL_VALID_SAN_STR, 54321
|
||||
|
||||
@staticmethod
|
||||
|
|
|
@ -28,7 +28,6 @@ def test_authority_input_schema(client, role, issuer_plugin, logged_in_user):
|
|||
|
||||
|
||||
def test_user_authority(session, client, authority, role, user, issuer_plugin):
|
||||
resp = client.get(api.url_for(AuthoritiesList), headers=user['token']).json
|
||||
u = user['user']
|
||||
u.roles.append(role)
|
||||
authority.roles.append(role)
|
||||
|
|
|
@ -44,25 +44,6 @@ def test_get_certificate_primitives(certificate):
|
|||
|
||||
names = [x509.DNSName(x.name) for x in certificate.domains]
|
||||
|
||||
data = {
|
||||
'common_name': certificate.cn,
|
||||
'owner': certificate.owner,
|
||||
'authority': certificate.authority,
|
||||
'description': certificate.description,
|
||||
'extensions': {
|
||||
'sub_alt_names': x509.SubjectAlternativeName(names)
|
||||
},
|
||||
'destinations': [],
|
||||
'roles': [],
|
||||
'validity_end': arrow.get(2021, 5, 7),
|
||||
'validity_start': arrow.get(2016, 10, 30),
|
||||
'country': 'US',
|
||||
'location': 'A place',
|
||||
'organization': 'Example',
|
||||
'organizational_unit': 'Operations',
|
||||
'state': 'CA'
|
||||
}
|
||||
|
||||
with freeze_time(datetime.date(year=2016, month=10, day=30)):
|
||||
primitives = get_certificate_primitives(certificate)
|
||||
assert len(primitives) == 24
|
||||
|
|
Loading…
Reference in New Issue