Remove unused mock RDAP lib class since RDAP not used in registrar views

This commit is contained in:
Erin Song 2024-09-24 16:47:28 -07:00
parent 5439894fa3
commit 23cb5681ea
No known key found for this signature in database
2 changed files with 2 additions and 20 deletions

View file

@ -8,7 +8,6 @@ from django.test import TestCase
from ..views import available, check_domain_available, rdap from ..views import available, check_domain_available, rdap
from .common import less_console_noise from .common import less_console_noise
from registrar.tests.common import MockRdapLib, MockEppLib
from registrar.utility.errors import GenericError, GenericErrorCodes from registrar.utility.errors import GenericError, GenericErrorCodes
from unittest.mock import call from unittest.mock import call
@ -19,7 +18,7 @@ from epplibwrapper import (
API_BASE_PATH = "/api/v1/rdap/?domain=" API_BASE_PATH = "/api/v1/rdap/?domain="
class RDapViewTest(MockRdapLib): class RDapViewTest(TestCase):
"""Test that the RDAP view function works as expected""" """Test that the RDAP view function works as expected"""
def setUp(self): def setUp(self):
@ -50,7 +49,7 @@ class RDapViewTest(MockRdapLib):
self.assertIn("errorCode", response_object) self.assertIn("errorCode", response_object)
class RdapAPITest(MockRdapLib): class RdapAPITest(TestCase):
"""Test that the API can be called as expected.""" """Test that the API can be called as expected."""
def setUp(self): def setUp(self):

View file

@ -1029,23 +1029,6 @@ def generic_domain_object(domain_type, object_name):
return domain_request 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 MockEppLib(TestCase):
class fakedEppObject(object): class fakedEppObject(object):
"""""" """"""