From 74813f5428d734573a8ac89cc1f331f36d308153 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Tue, 4 Apr 2023 14:03:46 +0300 Subject: [PATCH] Updated tests --- tests/test_bin_queries.py | 4 ++-- tests/test_blacklist.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_bin_queries.py b/tests/test_bin_queries.py index 4196b4a0..8e0e03cc 100644 --- a/tests/test_bin_queries.py +++ b/tests/test_bin_queries.py @@ -11,10 +11,10 @@ class TestBinQueries(unittest.TestCase): self.assertGreater(self.query.count_packages(), 1) 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): - 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): self.assertGreater(len(self.query.all_package_names_from_repositories()), 1) diff --git a/tests/test_blacklist.py b/tests/test_blacklist.py index 38499712..4c06cd9a 100644 --- a/tests/test_blacklist.py +++ b/tests/test_blacklist.py @@ -6,7 +6,7 @@ class TestBlacklist(unittest.TestCase): def test_blacklist(self): black = Blacklist() - self.assertListEqual(['%README%'], black.packages()) + self.assertListEqual(['%README%', 'vlc'], black.packages()) if __name__ == '__main__':