Update repo version for sbo only

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
Dimitris Zlatanidis 2022-10-19 20:21:18 +03:00
parent cce92e7793
commit 2919edabe7
3 changed files with 6 additions and 6 deletions

View file

@ -17,7 +17,7 @@ configs:
database: database.slpkg
# SBo repository configs
repo_version: 15.0
sbo_repo_version: 15.0
sbo_url: http://slackbuilds.org/slackbuilds/15.0
sbo_txt: SLACKBUILDS.TXT
sbo_tar_suffix: .tar.gz

View file

@ -33,8 +33,8 @@ class Configs:
database: str = f'database.{prog_name}'
# SBo repository configs
repo_version: str = '15.0'
sbo_url: str = f'http://slackbuilds.org/slackbuilds/{repo_version}'
sbo_repo_version: str = '15.0'
sbo_url: str = f'http://slackbuilds.org/slackbuilds/{sbo_repo_version}'
sbo_txt: str = 'SLACKBUILDS.TXT'
sbo_tar_suffix: str = '.tar.gz'
sbo_repo_tag: str = '_SBo'
@ -82,7 +82,7 @@ class Configs:
database: str = config['database']
# SBo repository details
repo_version: str = config['repo_version']
sbo_repo_version: str = config['sbo_repo_version']
sbo_url: str = config['sbo_url']
sbo_txt: str = config['sbo_txt']
sbo_tar_suffix: str = config['tar_suffix']

View file

@ -5,14 +5,14 @@ from slpkg.configs import Configs
class TestConfigs(unittest.TestCase):
def setUp(self):
self.repo_version = Configs.repo_version
self.sbo_repo_version = Configs.sbo_repo_version
self.sbo_txt = Configs.sbo_txt
self.sbo_tar_suffix = Configs.sbo_tar_suffix
self.sbo_repo_tag = Configs.sbo_repo_tag
self.os_arch = Configs.os_arch
def test_repo_version(self):
self.assertEqual(15.0, self.repo_version)
self.assertEqual(15.0, self.sbo_repo_version)
def test_sbo_txt(self):
self.assertEqual('SLACKBUILDS.TXT', self.sbo_txt)