@@ -570,7 +570,7 @@ def test_api_with_lesser_and_greater_fixed_by_packages(self):
570570 response = self .csrf_client .get (f"/api/packages/{ self .pkg_2_13_1 .id } " , format = "json" ).data
571571
572572 expected = {
573- "url" : "http://testserver/api/packages/3" ,
573+ "url" : "http://testserver/api/packages/{0}" . format ( self . pkg_2_13_1 . id ) ,
574574 "purl" :
"pkg:maven/com.fasterxml.jackson.core/[email protected] " ,
575575 "type" : "maven" ,
576576 "namespace" : "com.fasterxml.jackson.core" ,
@@ -583,7 +583,7 @@ def test_api_with_lesser_and_greater_fixed_by_packages(self):
583583 "latest_non_vulnerable_version" : "2.14.0-rc1" ,
584584 "affected_by_vulnerabilities" : [
585585 {
586- "url" : "http://testserver/api/vulnerabilities/3" ,
586+ "url" : "http://testserver/api/vulnerabilities/{0}" . format ( self . vul3 . id ) ,
587587 "vulnerability_id" : "VCID-vul3-vul3-vul3" ,
588588 "summary" : "This is VCID-vul3-vul3-vul3" ,
589589 "references" : [],
@@ -594,13 +594,15 @@ def test_api_with_lesser_and_greater_fixed_by_packages(self):
594594 ],
595595 "fixing_vulnerabilities" : [
596596 {
597- "url" : "http://testserver/api/vulnerabilities/1" ,
597+ "url" : "http://testserver/api/vulnerabilities/{0}" . format ( self . vul1 . id ) ,
598598 "vulnerability_id" : "VCID-vul1-vul1-vul1" ,
599599 "summary" : "This is VCID-vul1-vul1-vul1" ,
600600 "references" : [],
601601 "fixed_packages" : [
602602 {
603- "url" : "http://testserver/api/packages/2" ,
603+ "url" : "http://testserver/api/packages/{0}" .format (
604+ self .pkg_2_12_6_1 .id
605+ ),
604606 "purl" :
"pkg:maven/com.fasterxml.jackson.core/[email protected] " ,
605607 "is_vulnerable" : True ,
606608 "affected_by_vulnerabilities" : [
@@ -609,7 +611,7 @@ def test_api_with_lesser_and_greater_fixed_by_packages(self):
609611 "resource_url" :
"http://testserver/packages/pkg:maven/com.fasterxml.jackson.core/[email protected] " ,
610612 },
611613 {
612- "url" : "http://testserver/api/packages/4" ,
614+ "url" : "http://testserver/api/packages/{0}" . format ( self . pkg_2_13_2 . id ) ,
613615 "purl" :
"pkg:maven/com.fasterxml.jackson.core/[email protected] " ,
614616 "is_vulnerable" : True ,
615617 "affected_by_vulnerabilities" : [
0 commit comments