2022-06-21 18:00:05 +02:00
|
|
|
import unittest
|
|
|
|
from slpkg.configs import Configs
|
2023-03-20 20:22:56 +01:00
|
|
|
from slpkg.repositories import Repositories
|
2022-06-21 18:00:05 +02:00
|
|
|
|
|
|
|
|
|
|
|
class TestConfigs(unittest.TestCase):
|
|
|
|
|
|
|
|
def setUp(self):
|
2023-03-20 20:22:56 +01:00
|
|
|
self.repos = Repositories()
|
2023-03-25 18:39:08 +01:00
|
|
|
self.sbo_txt = self.repos.sbo_repo_slackbuilds
|
2023-03-20 20:22:56 +01:00
|
|
|
self.sbo_tar_suffix = self.repos.sbo_repo_tar_suffix
|
|
|
|
self.sbo_repo_tag = self.repos.sbo_repo_tag
|
2022-06-21 18:00:05 +02:00
|
|
|
self.os_arch = Configs.os_arch
|
|
|
|
|
|
|
|
def test_sbo_txt(self):
|
|
|
|
self.assertEqual('SLACKBUILDS.TXT', self.sbo_txt)
|
|
|
|
|
|
|
|
def test_tar_suffix(self):
|
2022-10-19 18:55:45 +02:00
|
|
|
self.assertEqual('.tar.gz', self.sbo_tar_suffix)
|
2022-06-21 18:00:05 +02:00
|
|
|
|
|
|
|
def test_repo_tag(self):
|
2022-10-19 18:55:45 +02:00
|
|
|
self.assertEqual('_SBo', self.sbo_repo_tag)
|
2022-06-21 18:00:05 +02:00
|
|
|
|
|
|
|
def test_os_arch(self):
|
|
|
|
self.assertEqual('x86_64', self.os_arch)
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
unittest.main()
|