@@ -610,53 +610,3 @@ def setUpBeforeMigration(self, apps):
610
610
def test_removal_of_duped_purls (self ):
611
611
Package = apps .get_model ("vulnerabilities" , "Package" )
612
612
assert Package .objects .count () == 1
613
-
614
-
615
- class TestRemoveDupedChangeLogWithSameData (TestMigrations ):
616
- app_name = "vulnerabilities"
617
- migrate_from = "0054_alter_packagechangelog_software_version_and_more"
618
- migrate_to = "0055_remove_changelogs_with_same_data_different_software_version"
619
-
620
- def setUpBeforeMigration (self , apps ):
621
- PackageChangeLog = apps .get_model ("vulnerabilities" , "PackageChangeLog" )
622
- VulnerabilityChangeLog = apps .get_model ("vulnerabilities" , "VulnerabilityChangeLog" )
623
- Package = apps .get_model ("vulnerabilities" , "Package" )
624
- Vulnerability = apps .get_model ("vulnerabilities" , "Vulnerability" )
625
- pkg1 = Package .objects .create (type = "nginx" , name = "nginx" , qualifiers = {"os" : "windows" })
626
- vuln = Vulnerability .objects .create (summary = "NEW" )
627
- PackageChangeLog .objects .create (
628
- actor_name = "Nginx" ,
629
- action_type = 1 ,
630
- source_url = "test" ,
631
- software_version = "1" ,
632
- package = pkg1 ,
633
- related_vulnerability = vuln ,
634
- )
635
- PackageChangeLog .objects .create (
636
- actor_name = "Nginx" ,
637
- action_type = 1 ,
638
- source_url = "test" ,
639
- software_version = "2" ,
640
- package = pkg1 ,
641
- related_vulnerability = vuln ,
642
- )
643
- VulnerabilityChangeLog .objects .create (
644
- actor_name = "Nginx" ,
645
- action_type = 1 ,
646
- source_url = "test" ,
647
- software_version = "2" ,
648
- vulnerability = vuln ,
649
- )
650
- VulnerabilityChangeLog .objects .create (
651
- actor_name = "Nginx" ,
652
- action_type = 1 ,
653
- source_url = "test" ,
654
- software_version = "1" ,
655
- vulnerability = vuln ,
656
- )
657
-
658
- def test_removal_of_changelog (self ):
659
- PackageChangeLog = apps .get_model ("vulnerabilities" , "PackageChangeLog" )
660
- VulnerabilityChangeLog = apps .get_model ("vulnerabilities" , "VulnerabilityChangeLog" )
661
- assert PackageChangeLog .objects .all ().count () == 1
662
- assert VulnerabilityChangeLog .objects .all ().count () == 1
0 commit comments