Updated for test repos

This commit is contained in:
Dimitris Zlatanidis 2023-04-05 23:09:26 +03:00
parent 958d6b9f9b
commit 0027c34c43

View file

@ -18,6 +18,21 @@ class TestUtilities(unittest.TestCase):
for pkg in self.packages:
self.assertFalse(False, Upgrade([]).is_package_upgradeable(pkg))
def test_for_sbo_repository(self):
upgrade = Upgrade([])
packages: list = list(upgrade.packages())
self.assertGreater(len(packages), 1)
def test_for_alien_repository(self):
upgrade = Upgrade(['-B'], 'alien')
packages: list = list(upgrade.packages())
self.assertGreater(len(packages), 1)
def test_for_slack_repository(self):
upgrade = Upgrade(['-B'], 'slack')
packages: list = list(upgrade.packages())
self.assertGreater(len(packages), 1)
if __name__ == '__main__':
unittest.main()