mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-11-17 07:48:18 +01:00
Updated for test
This commit is contained in:
parent
1c92aabf87
commit
9a15f9c406
4 changed files with 7 additions and 10 deletions
|
@ -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):
|
||||
|
|
|
@ -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'
|
||||
|
||||
|
|
|
@ -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__':
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue