mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-16 01:40:15 +08:00
fix: test_cua_config_log logger mock compat with multi-arg info calls
This commit is contained in:
@@ -280,7 +280,7 @@ async def test_cua_config_log_does_not_include_api_key(monkeypatch):
|
||||
FakeCuaBooter,
|
||||
raising=False,
|
||||
)
|
||||
monkeypatch.setattr(computer_client.logger, "info", log_messages.append)
|
||||
monkeypatch.setattr(computer_client.logger, "info", lambda *args: log_messages.append(args[0] if args else ""))
|
||||
|
||||
ctx = FakeContext(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user