Updated tests

This commit is contained in:
Dimitris Zlatanidis 2023-04-04 14:03:46 +03:00
parent 28231ac35c
commit 74813f5428
2 changed files with 3 additions and 3 deletions

View file

@ -11,10 +11,10 @@ class TestBinQueries(unittest.TestCase):
self.assertGreater(self.query.count_packages(), 1) self.assertGreater(self.query.count_packages(), 1)
def test_all_package_names_by_repo(self): def test_all_package_names_by_repo(self):
self.assertGreater(len(self.query.all_package_names_by_repo()), 1) self.assertGreater(len(list(self.query.all_package_names_by_repo())), 1)
def test_all_binaries_packages_by_repo(self): def test_all_binaries_packages_by_repo(self):
self.assertGreater(len(self.query.all_binaries_packages_by_repo()), 1) self.assertGreater(len(list(self.query.all_binaries_packages_by_repo())), 1)
def test_all_package_names_from_repositories(self): def test_all_package_names_from_repositories(self):
self.assertGreater(len(self.query.all_package_names_from_repositories()), 1) self.assertGreater(len(self.query.all_package_names_from_repositories()), 1)

View file

@ -6,7 +6,7 @@ class TestBlacklist(unittest.TestCase):
def test_blacklist(self): def test_blacklist(self):
black = Blacklist() black = Blacklist()
self.assertListEqual(['%README%'], black.packages()) self.assertListEqual(['%README%', 'vlc'], black.packages())
if __name__ == '__main__': if __name__ == '__main__':