Files
azionelab/backend/azionelab/tests.py

11 lines
330 B
Python

from django.test import SimpleTestCase
from django.urls import reverse
class HealthEndpointTests(SimpleTestCase):
def test_health_endpoint_returns_ok(self):
response = self.client.get(reverse("health"))
self.assertEqual(response.status_code, 200)
self.assertEqual(response.json(), {"status": "ok"})