@@ -15,7 +15,7 @@ def test_returns_revision_numbers(self, mock_get_metadata):
1515 {"name" : "789.yaml" },
1616 ]
1717
18- result = CveHelper .has_revisions_with_cves ("my-snap" )
18+ result = CveHelper .get_revisions_with_cves ("my-snap" )
1919 self .assertEqual (result , [123 , 456 , 789 ])
2020
2121 @patch ("webapp.publisher.cve.cve_helper.CveHelper._get_cve_file_metadata" )
@@ -28,7 +28,7 @@ def test_ignores_non_yaml_files(self, mock_get_metadata):
2828 {"name" : "data.txt" },
2929 ]
3030
31- result = CveHelper .has_revisions_with_cves ("my-snap" )
31+ result = CveHelper .get_revisions_with_cves ("my-snap" )
3232 self .assertEqual (result , [123 , 456 ])
3333
3434 @patch ("webapp.publisher.cve.cve_helper.CveHelper._get_cve_file_metadata" )
@@ -38,12 +38,12 @@ def test_returns_empty_list_if_no_revision_files(self, mock_get_metadata):
3838 {"name" : "notes.txt" },
3939 ]
4040
41- result = CveHelper .has_revisions_with_cves ("my-snap" )
41+ result = CveHelper .get_revisions_with_cves ("my-snap" )
4242 self .assertEqual (result , [])
4343
4444 @patch ("webapp.publisher.cve.cve_helper.CveHelper._get_cve_file_metadata" )
4545 def test_returns_empty_list_on_not_found (self , mock_get_metadata ):
4646 mock_get_metadata .side_effect = NotFound ()
4747
48- result = CveHelper .has_revisions_with_cves ("my-snap" )
48+ result = CveHelper .get_revisions_with_cves ("my-snap" )
4949 self .assertEqual (result , [])
0 commit comments