mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-26 09:58:31 +01:00
Pass test checks
This commit is contained in:
parent
604cc98b7b
commit
8c8885aa48
1 changed files with 3 additions and 4 deletions
|
@ -6,7 +6,7 @@ class TestPkgInstalled(unittest.TestCase):
|
|||
|
||||
def setUp(self):
|
||||
self.check = Check()
|
||||
self.packages = ['Flask', 'colored', 'slpkg']
|
||||
self.packages = ['fish', 'ranger', 'pycharm']
|
||||
|
||||
def test_check_exists(self):
|
||||
self.assertIsNone(self.check.exists(self.packages))
|
||||
|
@ -15,11 +15,10 @@ class TestPkgInstalled(unittest.TestCase):
|
|||
self.assertIsNone(self.check.unsupported(self.packages))
|
||||
|
||||
def test_check_installed(self):
|
||||
self.assertIsNone(self.check.installed(self.packages))
|
||||
self.assertListEqual(self.packages, self.check.installed(self.packages))
|
||||
|
||||
def test_check_blacklist(self):
|
||||
self.assertListEqual(self.packages,
|
||||
self.check.blacklist(self.packages))
|
||||
self.assertIsNone(self.check.blacklist(self.packages))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Reference in a new issue