Coverage for audoma/settings.py: 0%
6 statements
« prev ^ index » next coverage.py v6.4.2, created at 2022-08-02 12:05 +0000
« prev ^ index » next coverage.py v6.4.2, created at 2022-08-02 12:05 +0000
1from rest_framework import exceptions
3from django.conf import settings
6WRAP_RESULT_SERIALIZER = getattr(settings, "AUDOMA_WRAP_RESULT_SERIALIZER", False)
7settings.SPECTACULAR_SETTINGS[
8 "GET_LIB_DOC_EXCLUDES"
9] = "audoma.plumbing.get_lib_doc_excludes_audoma"
12COMMON_API_ERRORS = [
13 exceptions.NotFound,
14 exceptions.NotAuthenticated,
15 exceptions.AuthenticationFailed,
16 exceptions.ParseError,
17 exceptions.PermissionDenied,
18 exceptions.NotAcceptable,
19 exceptions.ValidationError,
20 exceptions.Throttled,
21]
23settings.SPECTACULAR_SETTINGS["POSTPROCESSING_HOOKS"] = [
24 "audoma.hooks.postprocess_common_errors_section",
25]