refactor(channels): formalize default config onboarding
Some checks failed
Test Suite / test (3.11) (push) Failing after 1m32s
Test Suite / test (3.12) (push) Failing after 1m19s
Test Suite / test (3.13) (push) Failing after 1m27s

This commit is contained in:
Hua
2026-03-17 15:12:15 +08:00
parent bae0332af3
commit d31d6cdbe6
15 changed files with 176 additions and 23 deletions

View File

@@ -0,0 +1,9 @@
from nanobot.channels.registry import discover_channel_names, load_channel_class
def test_builtin_channels_expose_default_config_dicts() -> None:
for module_name in sorted(discover_channel_names()):
channel_cls = load_channel_class(module_name)
payload = channel_cls.default_config()
assert isinstance(payload, dict), module_name
assert "enabled" in payload, module_name