Improved code quality

This commit is contained in:
Dimitris Zlatanidis 2024-04-29 22:22:40 +03:00
parent f2e53d2902
commit 743bf89081

View file

@ -1,14 +1,19 @@
import unittest
from slpkg.configs import Configs
from pathlib import Path
from slpkg.configs import Configs
class TestConfigs(unittest.TestCase):
def setUp(self):
""" Test general configs.
"""
def setUp(self) -> None:
self.configs = Configs
def test_configs(self):
def test_configs(self) -> None:
""" Test all configs.
"""
self.assertEqual('slpkg', self.configs.prog_name)
self.assertEqual('x86_64', self.configs.os_arch)
self.assertEqual(Path('/tmp'), self.configs.tmp_path)