File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -700,7 +700,7 @@ def test_parse_csv_with_epss(self):
700
700
self .assertEqual (.23474 , finding .epss_percentile )
701
701
702
702
def test_parse_json_custom_test_with_meta (self ):
703
- with open (get_unit_tests_scans_path ("generic" ) / "generic_custom_test_with_meta.json" , encoding = "utf-8" ) as file :
703
+ with (get_unit_tests_scans_path ("generic" ) / "generic_custom_test_with_meta.json" ). open ( encoding = "utf-8" ) as file :
704
704
parser = GenericParser ()
705
705
tests = parser .get_tests (parser .get_scan_types ()[0 ], file )
706
706
self .assertEqual (1 , len (tests ))
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ def test_parse_some_findings_csv2_all_nessus_legacy(self):
103
103
104
104
def test_parse_findings_all_nessus (self ):
105
105
"""Test that use a report with all columns selected in generate CSV Report 2025-04-14"""
106
- with open (get_unit_tests_scans_path ("tenable/nessus" ) / "nessus-template.csv" , encoding = "utf-8" ) as testfile :
106
+ with (get_unit_tests_scans_path ("tenable/nessus" ) / "nessus-template.csv" ). open ( encoding = "utf-8" ) as testfile :
107
107
parser = TenableParser ()
108
108
findings = parser .get_findings (testfile , self .create_test ())
109
109
for finding in findings :
You can’t perform that action at this time.
0 commit comments