From 24562908d24c9f1819160e1ad5d8e31bcb52eb5b Mon Sep 17 00:00:00 2001 From: SeSo Date: Tue, 24 Dec 2024 11:20:46 -0800 Subject: [PATCH] test: add regression test Signed-off-by: SeSo --- bc_obps/common/tests/endpoints/test_openapi_docs.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 bc_obps/common/tests/endpoints/test_openapi_docs.py diff --git a/bc_obps/common/tests/endpoints/test_openapi_docs.py b/bc_obps/common/tests/endpoints/test_openapi_docs.py new file mode 100644 index 0000000000..c0f9cfe67e --- /dev/null +++ b/bc_obps/common/tests/endpoints/test_openapi_docs.py @@ -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) \ No newline at end of file