mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-13 20:01:48 +01:00
Updated unittest
This commit is contained in:
parent
d13f5834f6
commit
b7b461774d
2 changed files with 7 additions and 7 deletions
|
@ -15,16 +15,16 @@ class TestSBoQueries(unittest.TestCase):
|
|||
|
||||
def test_sources(self):
|
||||
self.assertEqual(['https://gitlab.com/dslackw/slpkg/-/archive'
|
||||
'/4.3.7/slpkg-4.3.7.tar.gz'], self.query.sources())
|
||||
'/4.5.3/slpkg-4.5.3.tar.gz'], self.query.sources())
|
||||
|
||||
def test_requires(self):
|
||||
self.assertEqual(['SQLAlchemy', 'python-toml'], self.query.requires())
|
||||
self.assertEqual(['SQLAlchemy', 'python3-pythondialog', 'python3-progress'], self.query.requires())
|
||||
|
||||
def test_version(self):
|
||||
self.assertEqual('4.3.7', self.query.version())
|
||||
self.assertEqual('4.5.3', self.query.version())
|
||||
|
||||
def test_checksum(self):
|
||||
self.assertListEqual(['5a55fd350004b3e49a060835a7ada3e9'],
|
||||
self.assertListEqual(['d76c95208a4c1cc2d6121417885eb8a8'],
|
||||
self.query.checksum())
|
||||
|
||||
def test_files(self):
|
||||
|
|
|
@ -10,7 +10,7 @@ class TestUtilities(unittest.TestCase):
|
|||
self.configs = Configs()
|
||||
self.file_pattern = f'*{self.configs.sbo_repo_tag}'
|
||||
self.build_path = Configs.build_path
|
||||
self.package = 'fish-3.4.0-x86_64-2_SBo'
|
||||
self.package = 'fish-3.6.0-x86_64-1_SBo'
|
||||
|
||||
def test_ins_installed(self):
|
||||
self.assertEqual(self.package, self.utils.is_installed('fish', self.file_pattern))
|
||||
|
@ -19,13 +19,13 @@ class TestUtilities(unittest.TestCase):
|
|||
self.assertEqual('fish', self.utils.split_installed_pkg(self.package)[0])
|
||||
|
||||
def test_split_version(self):
|
||||
self.assertEqual('3.4.0', self.utils.split_installed_pkg(self.package)[1])
|
||||
self.assertEqual('3.6.0', self.utils.split_installed_pkg(self.package)[1])
|
||||
|
||||
def test_split_arch(self):
|
||||
self.assertEqual('x86_64', self.utils.split_installed_pkg(self.package)[2])
|
||||
|
||||
def test_split_build(self):
|
||||
self.assertEqual('2', self.utils.split_installed_pkg(self.package)[3])
|
||||
self.assertEqual('1', self.utils.split_installed_pkg(self.package)[3])
|
||||
|
||||
def test_split_tag(self):
|
||||
self.assertEqual('SBo', self.utils.split_installed_pkg(self.package)[4])
|
||||
|
|
Loading…
Reference in a new issue