Fix lint errors

This commit is contained in:
Erin 2023-11-30 11:24:20 -08:00
parent ba87db7c56
commit 7796452283
No known key found for this signature in database
GPG key ID: 1CAD275313C62460
2 changed files with 5 additions and 3 deletions

View file

@ -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):

View file

@ -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=""):