mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-27 09:58:10 +01:00
Updated tests
This commit is contained in:
parent
fcaa619aab
commit
321eb7e102
3 changed files with 5 additions and 8 deletions
|
@ -105,7 +105,7 @@ class Slackbuilds:
|
|||
sources = SBoQueries(sbo).sources()
|
||||
self.download_sources(sbo, sources)
|
||||
|
||||
self.execute_the_script(self.build_path, sbo)
|
||||
self.build_the_script(self.build_path, sbo)
|
||||
|
||||
if self.install:
|
||||
|
||||
|
@ -158,7 +158,7 @@ class Slackbuilds:
|
|||
|
||||
return max(packages)
|
||||
|
||||
def execute_the_script(self, path: str, name: str):
|
||||
def build_the_script(self, path: str, name: str):
|
||||
''' Run the .SlackBuild script. '''
|
||||
folder = f'{path}/{name}/'
|
||||
slackbuild = f'./{name}.SlackBuild'
|
||||
|
|
|
@ -13,7 +13,7 @@ class TestConfigs(unittest.TestCase):
|
|||
self.os_arch = Configs.os_arch
|
||||
|
||||
def test_repo_version(self):
|
||||
self.assertEqual('15.0', self.repo_version)
|
||||
self.assertEqual(15.0, self.repo_version)
|
||||
|
||||
def test_sbo_txt(self):
|
||||
self.assertEqual('SLACKBUILDS.TXT', self.sbo_txt)
|
||||
|
|
|
@ -9,12 +9,9 @@ class TestUtilities(unittest.TestCase):
|
|||
self.utils = Utilities()
|
||||
self.build_path = Configs.build_path
|
||||
|
||||
def test_build_tag(self):
|
||||
self.assertEqual(['2'], self.utils.build_tag(self.build_path,
|
||||
'fish'))
|
||||
|
||||
def test_ins_installed(self):
|
||||
self.assertEqual(True, self.utils.is_installed('fish-3.4.0'))
|
||||
self.assertEqual('fish-3.4.0-x86_64-2_SBo', self.utils.is_installed(
|
||||
'fish-3.4.0'))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Reference in a new issue