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..f64a366b73 --- /dev/null +++ b/bc_obps/common/tests/endpoints/test_openapi_docs.py @@ -0,0 +1,13 @@ +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) diff --git a/bc_obps/reporting/api/report_activity.py b/bc_obps/reporting/api/report_activity.py index e07177956f..20d79ef429 100644 --- a/bc_obps/reporting/api/report_activity.py +++ b/bc_obps/reporting/api/report_activity.py @@ -9,7 +9,7 @@ from reporting.schema.report_activity_data import ReportActivityDataIn from reporting.service.report_activity_load_service import ReportActivityLoadService from reporting.service.report_activity_save_service import ReportActivitySaveService -from service.error_service import custom_codes_4xx +from service.error_service.custom_codes_4xx import custom_codes_4xx from .router import router