diff --git a/configs/slpkg.yml b/configs/slpkg.yml index 0be2f7da..d16b9fe0 100644 --- a/configs/slpkg.yml +++ b/configs/slpkg.yml @@ -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 diff --git a/slpkg/configs.py b/slpkg/configs.py index f2074f70..89e45c1a 100644 --- a/slpkg/configs.py +++ b/slpkg/configs.py @@ -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'] diff --git a/tests/test_configs.py b/tests/test_configs.py index eed7e1a5..8b8a9fe4 100644 --- a/tests/test_configs.py +++ b/tests/test_configs.py @@ -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)