diff --git a/tests/test_checks.py b/tests/test_checks.py index e5e43282..74c358d2 100644 --- a/tests/test_checks.py +++ b/tests/test_checks.py @@ -8,7 +8,7 @@ class TestPkgInstalled(unittest.TestCase): def setUp(self): self.bin_queries = BinQueries('alien') self.data = self.bin_queries.repository_data() - self.check = Check(['-B', '--bin-repo='], self.data) + self.check = Check('aline', self.data) self.packages = ['audacity', 'vlc', 'dnspython'] def test_check_exists(self): diff --git a/tests/test_sbo_queries.py b/tests/test_sbo_queries.py index 8b56f6d6..a9d48877 100644 --- a/tests/test_sbo_queries.py +++ b/tests/test_sbo_queries.py @@ -5,7 +5,7 @@ from slpkg.sbos.queries import SBoQueries class TestSBoQueries(unittest.TestCase): def setUp(self): - self.sbo_queries = SBoQueries() + self.sbo_queries = SBoQueries('sbo') self.data: dict = self.sbo_queries.repository_data() self.name: str = 'slpkg' diff --git a/tests/test_upgrade.py b/tests/test_upgrade.py index 7a92a60f..8f4b4e8f 100644 --- a/tests/test_upgrade.py +++ b/tests/test_upgrade.py @@ -10,35 +10,32 @@ class TestUtilities(unittest.TestCase): def setUp(self): self.utils = Utilities() - self.sbo_queries = SBoQueries() + self.sbo_queries = SBoQueries('sbo') self.data: dict = self.sbo_queries.repository_data() def test_installed_is_upgradable_for_sbo_repository(self): - flags: list = [] packages: list = ['sbo-create', 'ptpython', 'pycharm', 'powerline-status'] for pkg in packages: - self.assertFalse(False, Upgrade(flags, self.data).is_package_upgradeable(pkg)) + self.assertFalse(False, Upgrade('sbo', self.data).is_package_upgradeable(pkg)) def test_installed_is_upgradable_for_slack_patches_repository(self): repo: str = 'slack_patches' bin_queries = BinQueries(repo) data: dict = bin_queries.repository_data() - flags: list = ['-B', '--bin-repo='] packages: list = ['vim', 'httpd', 'seamonkey', 'sudo', 'python3', 'qt5', 'php'] for pkg in packages: - self.assertFalse(False, Upgrade(flags, data).is_package_upgradeable(pkg)) + self.assertFalse(False, Upgrade('slack', data).is_package_upgradeable(pkg)) def test_installed_is_upgradable_for_alien_repository(self): repo: str = 'alien' bin_queries = BinQueries(repo) data: dict = bin_queries.repository_data() - flags: list = ['-B', '--bin-repo='] packages: list = ['audacity', 'vlc', 'dnspython'] for pkg in packages: - self.assertFalse(False, Upgrade(flags, data).is_package_upgradeable(pkg)) + self.assertFalse(False, Upgrade('alien', data).is_package_upgradeable(pkg)) if __name__ == '__main__': diff --git a/tests/test_utilities.py b/tests/test_utilities.py index e808a22f..a57e8b90 100644 --- a/tests/test_utilities.py +++ b/tests/test_utilities.py @@ -10,7 +10,7 @@ class TestUtilities(unittest.TestCase): def setUp(self): self.utils = Utilities() - self.sbo_queries = SBoQueries() + self.sbo_queries = SBoQueries('sbo') self.data: dict = self.sbo_queries.repository_data() self.build_path = Configs.build_path self.package = 'aaa_base-15.0-x86_64-4_slack15.0'