mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-13 20:01:48 +01:00
Updated tests
This commit is contained in:
parent
28231ac35c
commit
74813f5428
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||||
|
|
|
@ -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__':
|
||||||
|
|
Loading…
Reference in a new issue