mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-25 20:18:38 +02:00
Remove unused mock RDAP lib class since RDAP not used in registrar views
This commit is contained in:
parent
5439894fa3
commit
23cb5681ea
2 changed files with 2 additions and 20 deletions
|
@ -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):
|
||||
|
|
|
@ -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):
|
||||
""""""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue