mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-04 10:13:30 +02:00
Merge pull request #104 from cisagov/sspj/django-tests
Add testing to the CI pipeline
This commit is contained in:
commit
d2da8d1d8f
5 changed files with 54 additions and 0 deletions
0
src/registrar/tests/__init__.py
Normal file
0
src/registrar/tests/__init__.py
Normal file
0
src/registrar/tests/common.py
Normal file
0
src/registrar/tests/common.py
Normal file
11
src/registrar/tests/test_views.py
Normal file
11
src/registrar/tests/test_views.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
from django.test import Client, TestCase
|
||||
|
||||
|
||||
class HealthTest(TestCase):
|
||||
def setUp(self):
|
||||
self.client = Client()
|
||||
|
||||
def test_health_check_endpoint(self):
|
||||
response = self.client.get("/health/")
|
||||
self.assertEqual(response.status_code, 200)
|
||||
self.assertEqual(response.content, b"OK")
|
Loading…
Add table
Add a link
Reference in a new issue