Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2619 fix api docs #2639

Merged
merged 3 commits into from
Dec 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 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,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)
2 changes: 1 addition & 1 deletion bc_obps/reporting/api/report_activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
Loading