Skip to content

Commit

Permalink
Fixed coverage issue (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
utement authored Oct 17, 2023
1 parent 047c220 commit 4098505
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/incremental-coverage-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Python unittest
continue-on-error: true
run: |
coverage run -m manage.py test
coverage run -m manage test
- name: Generate coverage report
continue-on-error: true
run: |
Expand Down
22 changes: 12 additions & 10 deletions django_project_base/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,21 @@
from django_project_base.router import django_project_base_router
from django_project_base.views import browser_update_script

SPECTACULAR_DEFAULTS['TITLE'] = 'Rest documentation'
SPECTACULAR_DEFAULTS['DESCRIPTION'] = 'Api documentation'
SPECTACULAR_DEFAULTS['VERSION'] = '0.0.1'
SPECTACULAR_DEFAULTS['PREPROCESSING_HOOKS'] = [
'django_project_base.router.filter_rest_documentation_endpoints'
SPECTACULAR_DEFAULTS["TITLE"] = "Rest documentation"
SPECTACULAR_DEFAULTS["DESCRIPTION"] = "Api documentation"
SPECTACULAR_DEFAULTS["VERSION"] = "0.0.1"
SPECTACULAR_DEFAULTS["PREPROCESSING_HOOKS"] = [
"django_project_base.router.filter_rest_documentation_endpoints"
]

SPECTACULAR_DEFAULTS['POSTPROCESSING_HOOKS'] = [
'django_project_base.router.postprocess_rest_documentation'
SPECTACULAR_DEFAULTS["POSTPROCESSING_HOOKS"] = [
"django_project_base.router.postprocess_rest_documentation"
]

urlpatterns = [
path('jsi18n/', JavaScriptCatalog.as_view(), name='javascript-catalog'),
re_path('browser-update/js-script', browser_update_script, name='browser-update-script'),
re_path(r'', include(django_project_base_router.urls)),
path("jsi18n/", JavaScriptCatalog.as_view(), name="javascript-catalog"),
re_path(
"browser-update/js-script", browser_update_script, name="browser-update-script"
),
re_path(r"", include(django_project_base_router.urls)),
]

0 comments on commit 4098505

Please sign in to comment.