mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-13 20:01:48 +01:00
Removed unused
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
2919edabe7
commit
d830324f86
3 changed files with 1 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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']
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue