Removed unused

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

View file

@ -17,7 +17,6 @@ configs:
database: database.slpkg
# SBo repository configs
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,7 @@ class Configs:
database: str = f'database.{prog_name}'
# SBo repository configs
sbo_repo_version: str = '15.0'
sbo_url: str = f'http://slackbuilds.org/slackbuilds/{sbo_repo_version}'
sbo_url: str = 'http://slackbuilds.org/slackbuilds/15.0'
sbo_txt: str = 'SLACKBUILDS.TXT'
sbo_tar_suffix: str = '.tar.gz'
sbo_repo_tag: str = '_SBo'
@ -82,7 +81,6 @@ class Configs:
database: str = config['database']
# SBo repository details
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,15 +5,11 @@ from slpkg.configs import Configs
class TestConfigs(unittest.TestCase):
def setUp(self):
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.sbo_repo_version)
def test_sbo_txt(self):
self.assertEqual('SLACKBUILDS.TXT', self.sbo_txt)