import unittest import os from src.config import HOTKEY, LOGGING, AGGRESSION, CUSTOM_DICTIONARY, MIN_LENGTH, CONFIG_FILE from src.utils import setup_logging, log_diff class TestPolish(unittest.TestCase): def test_config_settings(self): # Test configuration settings self.assertEqual(HOTKEY, "ctrl+alt+p") self.assertTrue(LOGGING) self.assertEqual(AGGRESSION, "minimal") self.assertEqual(CUSTOM_DICTIONARY, ["Lucy", "FoxSoft", "tantra", "mtb"]) self.assertEqual(MIN_LENGTH, 10) self.assertTrue(CONFIG_FILE.endswith("config.ini")) def test_logging(self): # Test logging functionality self.assertTrue(callable(setup_logging)) self.assertTrue(callable(log_diff)) if __name__ == "__main__": unittest.main()