From fdd6140995f390e57a6189e28e99e4dd425698b5 Mon Sep 17 00:00:00 2001 From: Hossein Shafagh Date: Thu, 4 Mar 2021 19:16:06 -0800 Subject: [PATCH] typo and removing unused session commit --- lemur/tests/test_certificates.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lemur/tests/test_certificates.py b/lemur/tests/test_certificates.py index fa90280c..87214289 100644 --- a/lemur/tests/test_certificates.py +++ b/lemur/tests/test_certificates.py @@ -90,16 +90,14 @@ def test_get_all_certs_attached_to_endpoint_without_autorotate(session): from lemur.tests.factories import EndpointFactory, CertificateFactory # add a certificate with endpoint - s = EndpointFactory() - CertificateFactory(endpoint=s) - session.commit() + EndpointFactory() list_before = get_all_certs_attached_to_endpoint_without_autorotate() len_list_before = len(list_before) assert len_list_before > 0 # revoked the first certificate - first_cert_with_endpoitn = list_before[0] - cleanup_after_revoke(first_cert_with_endpoitn) + first_cert_with_endpoint = list_before[0] + cleanup_after_revoke(first_cert_with_endpoint) list_after = get_all_certs_attached_to_endpoint_without_autorotate() assert len(list_after) + 1 == len_list_before