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