fix(test): update load_config mock to accept config_path parameter

This commit is contained in:
masterlyj
2026-04-02 18:37:46 +08:00
committed by Xubin Ren
parent 7332d133a7
commit 11ba733ab6
+1 -1
View File
@@ -208,7 +208,7 @@ def test_channels_login_uses_discovered_plugin_class(monkeypatch):
seen["config"] = self.config
return True
monkeypatch.setattr("nanobot.config.loader.load_config", lambda: Config())
monkeypatch.setattr("nanobot.config.loader.load_config", lambda config_path=None: Config())
monkeypatch.setattr(
"nanobot.channels.registry.discover_all",
lambda: {"fakeplugin": _LoginPlugin},