File tree Expand file tree Collapse file tree 3 files changed +13
-11
lines changed Expand file tree Collapse file tree 3 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 4
4
# Django starts so that shared_task will use this app.
5
5
from .celery import app as celery_app # noqa: F401
6
6
7
- __version__ = ' 2.37.0-dev'
8
- __url__ = ' https://github.com/DefectDojo/django-DefectDojo'
9
- __docs__ = ' https://documentation.defectdojo.com'
7
+ __version__ = " 2.37.0-dev"
8
+ __url__ = " https://github.com/DefectDojo/django-DefectDojo"
9
+ __docs__ = " https://documentation.defectdojo.com"
Original file line number Diff line number Diff line change @@ -2888,12 +2888,12 @@ class ReportFindingFilterHelper(FilterSet):
2888
2888
2889
2889
o = OrderingFilter (
2890
2890
fields = (
2891
- (' title' , ' title' ),
2892
- (' date' , ' date' ),
2893
- (' numerical_severity' , ' numerical_severity' ),
2894
- (' epss_score' , ' epss_score' ),
2895
- (' epss_percentile' , ' epss_percentile' ),
2896
- (' test__engagement__product__name' , ' test__engagement__product__name' ),
2891
+ (" title" , " title" ),
2892
+ (" date" , " date" ),
2893
+ (" numerical_severity" , " numerical_severity" ),
2894
+ (" epss_score" , " epss_score" ),
2895
+ (" epss_percentile" , " epss_percentile" ),
2896
+ (" test__engagement__product__name" , " test__engagement__product__name" ),
2897
2897
),
2898
2898
)
2899
2899
Original file line number Diff line number Diff line change
1
+ import logging
1
2
import os
2
3
from importlib import import_module
3
4
from importlib .util import find_spec
4
5
from inspect import isclass
5
6
6
7
from dojo .models import Test , Test_Type
7
8
from dojo .tools .factory import get_parser
9
+ from unittests .dojo_test_case import DojoTestCase , get_unit_tests_path
8
10
9
- from . dojo_test_case import DojoTestCase , get_unit_tests_path
11
+ logger = logging . getLogger ( __name__ )
10
12
11
13
12
14
class TestFactory (DojoTestCase ):
@@ -76,5 +78,5 @@ def test_parser_name_matches_module(self):
76
78
if not found and module_name != "__pycache__" :
77
79
missing_parsers .append (module_name )
78
80
if len (missing_parsers ) > 0 :
79
- print (f"Parsers with invalid names: { missing_parsers } " )
81
+ logger . error (f"Parsers with invalid names: { missing_parsers } " )
80
82
self .assertEqual (0 , len (missing_parsers ))
You can’t perform that action at this time.
0 commit comments