mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-11-17 07:48:18 +01:00
29 lines
784 B
Python
29 lines
784 B
Python
import unittest
|
|
from slpkg.configs import Configs
|
|
from slpkg.repositories import Repositories
|
|
|
|
|
|
class TestConfigs(unittest.TestCase):
|
|
|
|
def setUp(self):
|
|
self.repos = Repositories()
|
|
self.sbo_txt = self.repos.sbo_repo_slackbuilds
|
|
self.sbo_tar_suffix = self.repos.sbo_repo_tar_suffix
|
|
self.sbo_repo_tag = self.repos.sbo_repo_tag
|
|
self.os_arch = Configs.os_arch
|
|
|
|
def test_sbo_txt(self):
|
|
self.assertEqual('SLACKBUILDS.TXT', self.sbo_txt)
|
|
|
|
def test_tar_suffix(self):
|
|
self.assertEqual('.tar.gz', self.sbo_tar_suffix)
|
|
|
|
def test_repo_tag(self):
|
|
self.assertEqual('_SBo', self.sbo_repo_tag)
|
|
|
|
def test_os_arch(self):
|
|
self.assertEqual('x86_64', self.os_arch)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|