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

This commit is contained in:
masterlyj authored and Xubin Ren committed 2026-04-02 18:37:46 +08:00
1 parent 7332d133a7
commit 11ba733ab6
1 file changed
+1 -1
+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},