diff --git a/tests/test_blacklist.py b/tests/test_blacklist.py index e12cc8a0..54a5d880 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([], black.packages()) + self.assertTupleEqual((), black.packages()) if __name__ == '__main__': diff --git a/tests/test_checks.py b/tests/test_checks.py index f55cd736..b3942ece 100644 --- a/tests/test_checks.py +++ b/tests/test_checks.py @@ -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)) diff --git a/tests/test_utilities.py b/tests/test_utilities.py index 7d6b7a29..3165785c 100644 --- a/tests/test_utilities.py +++ b/tests/test_utilities.py @@ -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):