File tree Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -224,16 +224,13 @@ def audit_task(self, task):
224
224
}
225
225
entity_id = f"uid:{ gen_uuid ()} "
226
226
entity_message = {
227
- "@id" : entity_id ,
227
+ "@id" : entity_id ,
228
228
"Label" : print (entity_label ),
229
- "AtLocation" : input_paths , #
230
- "GeneratedBy" : "test" ,
229
+ "AtLocation" : input_paths , #
230
+ "GeneratedBy" : "test" ,
231
231
"@type" : "input" ,
232
- "digest" : input_paths_hash
232
+ "digest" : input_paths_hash ,
233
233
}
234
234
235
-
236
-
237
235
self .audit_message (start_message , AuditFlag .PROV )
238
236
self .audit_message (entity_message , AuditFlag .PROV )
239
-
Original file line number Diff line number Diff line change @@ -1071,13 +1071,13 @@ def test_audit_shellcommandtask(tmpdir):
1071
1071
1072
1072
def test_audit_shellcommandtask_file (tmpdir ):
1073
1073
import shutil
1074
+
1074
1075
# create test.txt file with "This is a test" in it in the tmpdir
1075
1076
with open (tmpdir / "test.txt" , "w" ) as f :
1076
1077
f .write ("This is a test." )
1077
1078
# make a copy of the test.txt file in the tmpdir and name it test2.txt
1078
1079
shutil .copy (tmpdir / "test.txt" , tmpdir / "test2.txt" )
1079
1080
1080
-
1081
1081
cmd = "cat"
1082
1082
file_in = tmpdir / "test.txt"
1083
1083
file_in_2 = tmpdir / "test2.txt"
@@ -1098,7 +1098,7 @@ def test_audit_shellcommandtask_file(tmpdir):
1098
1098
},
1099
1099
),
1100
1100
),
1101
- (
1101
+ (
1102
1102
"in_file_2" ,
1103
1103
attr .ib (
1104
1104
type = File ,
@@ -1109,7 +1109,7 @@ def test_audit_shellcommandtask_file(tmpdir):
1109
1109
"mandatory" : True ,
1110
1110
},
1111
1111
),
1112
- )
1112
+ ),
1113
1113
],
1114
1114
bases = (ShellSpec ,),
1115
1115
)
You can’t perform that action at this time.
0 commit comments