mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-05 17:28:31 +02:00
Fix tests?
This commit is contained in:
parent
3c32530082
commit
b23852f1d3
2 changed files with 5 additions and 2 deletions
|
@ -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")
|
||||
|
|
|
@ -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>'
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue