mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-11-17 07:48:18 +01:00
Added test for upgrade packages
This commit is contained in:
parent
1864fde69e
commit
057b3b4600
1 changed files with 23 additions and 0 deletions
23
tests/test_upgrade.py
Normal file
23
tests/test_upgrade.py
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from slpkg.utilities import Utilities
|
||||||
|
from slpkg.upgrade import Upgrade
|
||||||
|
|
||||||
|
|
||||||
|
class TestUtilities(unittest.TestCase):
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
self.utils = Utilities()
|
||||||
|
self.packages: list = ['git', 'wget', 'vim', 'pycharm', 'libreoffice', 'ptpython', 'ranger', 'colored']
|
||||||
|
|
||||||
|
def test_installed_is_upgradable_for_binaries(self):
|
||||||
|
for pkg in self.packages:
|
||||||
|
self.assertFalse(False, Upgrade(['-B', '--bin-repo='], 'slack_patches').is_package_upgradeable(pkg))
|
||||||
|
|
||||||
|
def test_installed_is_upgradable_for_slackbuilds(self):
|
||||||
|
for pkg in self.packages:
|
||||||
|
self.assertFalse(False, Upgrade([]).is_package_upgradeable(pkg))
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
Loading…
Reference in a new issue