def test_cleanup_filter(self): wf = OBSLocal.FactoryWorkflow() UnselectCommand.config_init(wf.api) UnselectCommand.cleanup_days = 1 obsolete = wf.api.project_status_requests( 'obsolete', UnselectCommand.filter_obsolete) self.assertSequenceEqual([], obsolete)
def test_cleanup_filter(self): UnselectCommand.config_init(self.api) UnselectCommand.cleanup_days = 1 obsolete = self.api.project_status_requests( 'obsolete', UnselectCommand.filter_obsolete) self.assertSequenceEqual( ['627445', '642126', '646560', '645723', '646823'], obsolete)
def test_cleanup_filter(self): UnselectCommand.config_init(self.api) obsolete = self.api.project_status_requests('obsolete', UnselectCommand.filter_obsolete) self.assertTrue('492438' in obsolete, 'revoked') self.assertTrue('592437' in obsolete, 'superseded but over threshold') self.assertTrue('492439' in obsolete, 'declined by leaper') self.assertTrue('492441' in obsolete, 'declined but over threshold') self.assertEqual(len(obsolete), 4)
def test_cleanup_filter(self): wf = OBSLocal.StagingWorkflow() UnselectCommand.config_init(wf.api) UnselectCommand.cleanup_days = 1 obsolete = wf.api.project_status_requests('obsolete', UnselectCommand.filter_obsolete) self.assertSequenceEqual([], obsolete)
def test_cleanup_filter(self): UnselectCommand.config_init(self.api) UnselectCommand.cleanup_days = 1 obsolete = self.api.project_status_requests('obsolete', UnselectCommand.filter_obsolete) self.assertSequenceEqual(['627445', '642126', '646560', '645723', '646823'], obsolete)