mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-25 09:58:41 +01:00
Updated for test
This commit is contained in:
parent
ad815f5003
commit
0902f8754b
3 changed files with 5 additions and 5 deletions
|
@ -6,7 +6,7 @@ class TestBlacklist(unittest.TestCase):
|
|||
|
||||
def test_blacklist(self):
|
||||
black = Blacklist()
|
||||
self.assertListEqual([], black.packages())
|
||||
self.assertTupleEqual((), black.packages())
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
|
@ -8,14 +8,14 @@ class TestPkgInstalled(unittest.TestCase):
|
|||
def setUp(self):
|
||||
self.bin_queries = SBoQueries('sbo')
|
||||
self.data = self.bin_queries.repository_data()
|
||||
self.check = Check('sbo', self.data)
|
||||
self.check = Check('sbo')
|
||||
self.packages = ['colored', 'sbo-create', 'sun']
|
||||
|
||||
def test_check_exists(self):
|
||||
self.assertIsNone(self.check.package_exists_in_the_database(self.packages))
|
||||
self.assertIsNone(self.check.package_exists_in_the_database(self.packages, self.data))
|
||||
|
||||
def test_check_unsupported(self):
|
||||
self.assertIsNone(self.check.is_package_unsupported(self.packages))
|
||||
self.assertIsNone(self.check.is_package_unsupported(self.packages, self.data))
|
||||
|
||||
def test_check_is_installed(self):
|
||||
self.assertIsNone(self.check.is_package_installed(self.packages))
|
||||
|
|
|
@ -41,7 +41,7 @@ class TestUtilities(unittest.TestCase):
|
|||
self.assertEqual('1', self.utils.read_slackbuild_build_tag('slpkg', 'system', 'sbo'))
|
||||
|
||||
def test_is_option(self):
|
||||
self.assertTrue(True, self.utils.is_option(['-P', '--parallel'],
|
||||
self.assertTrue(True, self.utils.is_option(('-P', '--parallel'),
|
||||
['-k', '-p', '-P', '--parallel', '--repository']))
|
||||
|
||||
def test_get_file_size(self):
|
||||
|
|
Loading…
Reference in a new issue