Files
2024-02-15 17:01:50 +00:00

14 lines
420 B
Python

from django.urls import reverse
from sentry.testutils.cases import APITestCase
class SystemHealthTest(APITestCase):
def test_simple(self):
self.login_as(user=self.user, superuser=True)
url = reverse("sentry-api-0-system-health")
response = self.client.get(url)
assert response.status_code == 200
assert "problems" in response.data
assert "healthy" in response.data