From 23cb5681eaad213b4674d325936a4eb831391190 Mon Sep 17 00:00:00 2001 From: Erin Song <121973038+erinysong@users.noreply.github.com> Date: Tue, 24 Sep 2024 16:47:28 -0700 Subject: [PATCH] Remove unused mock RDAP lib class since RDAP not used in registrar views --- src/api/tests/test_rdap.py | 5 ++--- src/registrar/tests/common.py | 17 ----------------- 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/src/api/tests/test_rdap.py b/src/api/tests/test_rdap.py index cd7654f08..b2a474514 100644 --- a/src/api/tests/test_rdap.py +++ b/src/api/tests/test_rdap.py @@ -8,7 +8,6 @@ from django.test import TestCase from ..views import available, check_domain_available, rdap from .common import less_console_noise -from registrar.tests.common import MockRdapLib, MockEppLib from registrar.utility.errors import GenericError, GenericErrorCodes from unittest.mock import call @@ -19,7 +18,7 @@ from epplibwrapper import ( API_BASE_PATH = "/api/v1/rdap/?domain=" -class RDapViewTest(MockRdapLib): +class RDapViewTest(TestCase): """Test that the RDAP view function works as expected""" def setUp(self): @@ -50,7 +49,7 @@ class RDapViewTest(MockRdapLib): self.assertIn("errorCode", response_object) -class RdapAPITest(MockRdapLib): +class RdapAPITest(TestCase): """Test that the API can be called as expected.""" def setUp(self): diff --git a/src/registrar/tests/common.py b/src/registrar/tests/common.py index fd052420e..4edfbe680 100644 --- a/src/registrar/tests/common.py +++ b/src/registrar/tests/common.py @@ -1029,23 +1029,6 @@ def generic_domain_object(domain_type, object_name): return domain_request -class MockRdapLib(TestCase): - class fakedRdapObject(object): - def __init__( - self, - rdapConformance=..., - description=..., - errorCode=..., - title=... - ): - self.rdapConformance = rdapConformance - self.description = description - self.errorCode = errorCode - self.title = title - - - - class MockEppLib(TestCase): class fakedEppObject(object): """"""