Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
test(remote): read renamed profile fixtures as UTF-8 on Windows
Xubin Ren49eb3a27f9ed
diff --git a/tests/webui/test_remote_instances.py b/tests/webui/test_remote_instances.pyindex 2defbbc2a..55d0fed86 100644--- a/tests/webui/test_remote_instances.py+++ b/tests/webui/test_remote_instances.py@@ -86,13 +86,13 @@ async def test_new_local_manager_has_new_view_identity_for_same_remote(manager,async def test_rename_connected_profile_only_changes_display_name(manager, ssh):key = await save(manager)await manager.action("connect", {"id": key})- before = json.loads(manager.path.read_text())+ before = json.loads(manager.path.read_text(encoding="utf-8"))live = manager.connections[key]result = await manager.action("rename", {"id": key, "name": " 腾讯云 nanobot "})assert result["profiles"][0]["name"] == "腾讯云 nanobot"assert result["profiles"][0]["connected"] is Truebefore[key]["name"] = "腾讯云 nanobot"- assert json.loads(manager.path.read_text()) == before+ assert json.loads(manager.path.read_text(encoding="utf-8")) == beforeassert RemoteInstances(manager.path.parent).snapshot()["profiles"][0]["name"] == "腾讯云 nanobot"assert manager.connections[key] is livessh.tunnel.pause.assert_not_awaited()