@@ -330,14 +330,14 @@ def test_packages_commit_patch(self):
330330 advisory_data = vulns [0 ]
331331
332332 assert advisory_data ["advisory_id" ] == "AVID-123"
333- assert advisory_data ["introduced_in_patch " ] == [
333+ assert advisory_data ["introduced_in_patches " ] == [
334334 {
335335 "commit_hash" : "06580c7f99c6fde7bcf18e30bdcc61f081430957" ,
336336 "vcs_url" : "https://github.com/aboutcode-org/sample" ,
337337 }
338338 ]
339339
340- assert advisory_data ["fixed_in_patch " ] == [
340+ assert advisory_data ["fixed_in_patches " ] == [
341341 {
342342 "commit_hash" : "98e516011d6e096e25247b82fc5f196bbeecff10" ,
343343 "vcs_url" : "https://github.com/aboutcode-org/sample" ,
@@ -450,7 +450,7 @@ def test_packages_commit_patch(self):
450450 assert {
451451 "commit_hash" : "06580c7f99c6fde7bcf18e30bdcc61f081430957" ,
452452 "vcs_url" : "https://github.com/aboutcode-org/sample" ,
453- } in advisory_data ["introduced_in_patch " ]
453+ } in advisory_data ["introduced_in_patches " ]
454454
455455 def test_advisory_set_member_patches_aggregation (self ):
456456 url = reverse ("package-v3-list" )
@@ -472,10 +472,12 @@ def test_advisory_set_member_patches_aggregation(self):
472472 advisory_data = vulns [0 ]
473473 assert advisory_data ["advisory_id" ] == "AVID-123"
474474
475- introduced_hashes = [patch ["commit_hash" ] for patch in advisory_data ["introduced_in_patch" ]]
475+ introduced_hashes = [
476+ patch ["commit_hash" ] for patch in advisory_data ["introduced_in_patches" ]
477+ ]
476478 assert "06580c7f99c6fde7bcf18e30bdcc61f081430957" in introduced_hashes
477479 assert "98e516011d6e096e25247b82fc5f196bbeecff10" in introduced_hashes
478480
479- fixed_hashes = [patch ["commit_hash" ] for patch in advisory_data ["fixed_in_patch " ]]
481+ fixed_hashes = [patch ["commit_hash" ] for patch in advisory_data ["fixed_in_patches " ]]
480482 assert "98e516011d6e096e25247b82fc5f196bbeecff10" in fixed_hashes
481483 assert "2fc5f196bbeecff1098e516011d6e096e25247b8" in fixed_hashes
0 commit comments