mirror of
https://github.com/healthchecks/healthchecks.git
synced 2024-11-24 08:16:50 +00:00
15 lines
333 B
Python
15 lines
333 B
Python
from __future__ import annotations
|
|
|
|
from hc.test import BaseTestCase
|
|
|
|
|
|
class StatusTestCase(BaseTestCase):
|
|
url = "/api/v1/status/"
|
|
|
|
def test_it_works(self) -> None:
|
|
r = self.client.get(self.url)
|
|
self.assertEqual(r.status_code, 200)
|
|
|
|
self.assertNumQueries(1)
|
|
self.assertEqual(r.content, b"OK")
|