slpkg/tests/test_checks.py
Dimitris Zlatanidis 8ff5191990 Pass tests
2024-03-21 18:33:33 +02:00

22 lines
597 B
Python

import unittest
from slpkg.checks import Check
from slpkg.load_data import LoadData
class TestPkgInstalled(unittest.TestCase):
def setUp(self):
load = LoadData()
self.data = load.load('sbo')
self.check = Check('sbo')
self.packages = ['colored', 'sbo-create', 'sun']
def test_check_exists(self):
self.assertIsNone(self.check.package_exists_in_the_database(self.packages, self.data))
def test_check_is_installed(self):
self.assertIsNone(self.check.is_package_installed(self.packages))
if __name__ == "__main__":
unittest.main()