Skip to content

Commit

Permalink
test: add regression test
Browse files Browse the repository at this point in the history
Signed-off-by: SeSo <[email protected]>
  • Loading branch information
Sepehr-Sobhani committed Dec 24, 2024
1 parent 6a8d77e commit 2456290
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions bc_obps/common/tests/endpoints/test_openapi_docs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from django.test import Client, TestCase
from registration.utils import custom_reverse_lazy


class TestOpenAPIDocs(TestCase):
"""
Tests that the OpenAPI docs are accessible.
"""
def test_openapi_docs_are_accessible(self):
client = Client()
response = client.get(custom_reverse_lazy('openapi-json'))
self.assertEqual(response.status_code, 200)

0 comments on commit 2456290

Please sign in to comment.