18 lines
452 B
Python
18 lines
452 B
Python
import unittest
|
|
from pathlib import Path
|
|
|
|
from core.config import ConfigManager
|
|
|
|
|
|
class ConfigTests(unittest.TestCase):
|
|
def test_plugin_defaults(self):
|
|
cfg = ConfigManager(Path("config/config.yml"), Path("config/modules.yml"))
|
|
cfg.load()
|
|
plugin_cfg = cfg.get_plugin_config("example")
|
|
self.assertIn("enabled", plugin_cfg)
|
|
self.assertIn("settings", plugin_cfg)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main()
|