slpkg/tests/test_checks.py

27 lines
721 B
Python
Raw Normal View History

2022-06-21 18:40:06 +03:00
import unittest
from slpkg.checks import Check
2023-01-23 23:56:56 +02:00
from slpkg.configs import Configs
2023-03-20 21:22:56 +02:00
from slpkg.repositories import Repositories
2022-06-21 18:40:06 +03:00
class TestPkgInstalled(unittest.TestCase):
def setUp(self):
self.check = Check()
2023-01-23 23:56:56 +02:00
self.configs = Configs()
2023-03-20 21:22:56 +02:00
self.repos = Repositories()
2022-12-23 00:08:04 +02:00
self.packages = ['fish', 'ranger', 'pycharm']
2022-06-21 18:40:06 +03:00
def test_check_exists(self):
2023-03-15 20:23:40 +02:00
self.assertIsNone(self.check.exists_in_the_database(self.packages))
2022-06-21 18:40:06 +03:00
2022-12-22 23:00:42 +02:00
def test_check_unsupported(self):
2023-03-15 19:16:14 +02:00
self.assertIsNone(self.check.is_package_unsupported(self.packages))
2022-06-21 18:40:06 +03:00
def test_check_blacklist(self):
2023-03-15 19:16:14 +02:00
self.assertIsNone(self.check.is_blacklist(self.packages))
2022-06-21 18:40:06 +03:00
if __name__ == "__main__":
unittest.main()