diff --git a/lemur/tests/plugins/issuer_plugin.py b/lemur/tests/plugins/issuer_plugin.py index acc7dcab..7dbc46de 100644 --- a/lemur/tests/plugins/issuer_plugin.py +++ b/lemur/tests/plugins/issuer_plugin.py @@ -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 diff --git a/lemur/tests/test_authorities.py b/lemur/tests/test_authorities.py index 78399e47..e865ab41 100644 --- a/lemur/tests/test_authorities.py +++ b/lemur/tests/test_authorities.py @@ -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) diff --git a/lemur/tests/test_certificates.py b/lemur/tests/test_certificates.py index 3368f88d..fff6e253 100644 --- a/lemur/tests/test_certificates.py +++ b/lemur/tests/test_certificates.py @@ -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