Skip to content

Commit

Permalink
Merge pull request #2639 from bcgov/2619-fix-api-docs
Browse files Browse the repository at this point in the history
2619 fix api docs
  • Loading branch information
Sepehr-Sobhani authored Dec 24, 2024
2 parents 0e93aea + 64347da commit 8a110b6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
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

0 comments on commit 8a110b6

Please sign in to comment.