File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ def test_fortify_many_fdr_findings(self):
100
100
self .assertEqual (104 , finding .line )
101
101
102
102
def test_fortify_hello_world_fpr_findings (self ):
103
- with open (get_unit_tests_scans_path ("fortify" ) / "hello_world.fpr" , encoding = "utf-8" ) as testfile :
103
+ with (get_unit_tests_scans_path ("fortify" ) / "hello_world.fpr" ). open ( encoding = "utf-8" ) as testfile :
104
104
parser = FortifyParser ()
105
105
findings = parser .get_findings (testfile , Test ())
106
106
self .assertEqual (4 , len (findings ))
@@ -133,7 +133,7 @@ def test_fortify_webinspect_4_2_many_findings(self):
133
133
self .assertEqual ("Medium" , finding .severity )
134
134
135
135
def test_fortify_fpr_suppressed_finding (self ):
136
- with open (get_unit_tests_scans_path ("fortify" ) / "fortify_suppressed_with_comments.fpr" , encoding = "utf-8" ) as testfile :
136
+ with (get_unit_tests_scans_path ("fortify" ) / "fortify_suppressed_with_comments.fpr" ). open ( encoding = "utf-8" ) as testfile :
137
137
parser = FortifyParser ()
138
138
findings = parser .get_findings (testfile , Test ())
139
139
self .assertEqual (4 , len (findings ))
You can’t perform that action at this time.
0 commit comments