mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-08-06 17:38:35 +00:00
fix(test): update load_config mock to accept config_path parameter
This commit is contained in:
parent
7332d133a7
commit
11ba733ab6
@ -208,7 +208,7 @@ def test_channels_login_uses_discovered_plugin_class(monkeypatch):
|
|||||||
seen["config"] = self.config
|
seen["config"] = self.config
|
||||||
return True
|
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(
|
monkeypatch.setattr(
|
||||||
"nanobot.channels.registry.discover_all",
|
"nanobot.channels.registry.discover_all",
|
||||||
lambda: {"fakeplugin": _LoginPlugin},
|
lambda: {"fakeplugin": _LoginPlugin},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user