mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-12 14:08:28 +02:00
Fix lint errors
This commit is contained in:
parent
ba87db7c56
commit
7796452283
2 changed files with 5 additions and 3 deletions
|
@ -116,8 +116,11 @@ class AvailableViewTest(MockEppLib):
|
||||||
# domain set to raise error returns false for availability and error message
|
# domain set to raise error returns false for availability and error message
|
||||||
error_domain_response = available(request, domain="errordomain.gov")
|
error_domain_response = available(request, domain="errordomain.gov")
|
||||||
self.assertFalse(json.loads(error_domain_response.content)["available"])
|
self.assertFalse(json.loads(error_domain_response.content)["available"])
|
||||||
self.assertEqual(GenericError._error_mapping[GenericErrorCodes.CANNOT_CONTACT_REGISTRY],
|
self.assertEqual(
|
||||||
json.loads(error_domain_response.content)["message"])
|
GenericError._error_mapping[GenericErrorCodes.CANNOT_CONTACT_REGISTRY],
|
||||||
|
json.loads(error_domain_response.content)["message"],
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class AvailableAPITest(MockEppLib):
|
class AvailableAPITest(MockEppLib):
|
||||||
|
|
||||||
|
|
|
@ -74,7 +74,6 @@ def check_domain_available(domain):
|
||||||
return Domain.available(domain + ".gov")
|
return Domain.available(domain + ".gov")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@require_http_methods(["GET"])
|
@require_http_methods(["GET"])
|
||||||
@login_not_required
|
@login_not_required
|
||||||
def available(request, domain=""):
|
def available(request, domain=""):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue