Fix tests?

This commit is contained in:
Neil Martinsen-Burrell 2022-09-13 10:20:56 -05:00
parent 3c32530082
commit b23852f1d3
No known key found for this signature in database
GPG key ID: 6A3C818CC10D0184
2 changed files with 5 additions and 2 deletions

View file

@ -8,4 +8,4 @@ class HealthTest(TestCase):
def test_health_check_endpoint(self):
response = self.client.get("/health/")
self.assertEqual(response.status_code, 200)
self.assertEqual(response.content, b"OK")
self.assertContains(response, "OK")

View file

@ -1,4 +1,7 @@
from django.http import HttpResponse
def health(request):
return HttpResponse('<html lang="en"><head><title>OK - Get.gov</title></head><body>OK</body>')
return HttpResponse(
'<html lang="en"><head><title>OK - Get.gov</title></head><body>OK</body>'
)