fix(tests): make settings workspace path portable

This commit is contained in:
Xubin Ren 2026-05-20 02:11:51 +08:00
parent e00220bdb6
commit 1391aa3d57

View File

@ -1057,7 +1057,8 @@ async def test_settings_api_returns_safe_subset_and_updates_whitelist(
assert image_providers["openrouter"]["configured"] is False
assert image_providers["gemini"]["label"] == "Gemini"
assert body["runtime"]["config_path"] == str(config_path)
assert body["runtime"]["workspace_path"].endswith(".nanobot/workspace")
workspace_path = body["runtime"]["workspace_path"].replace("\\", "/")
assert workspace_path.endswith("/.nanobot/workspace")
assert body["runtime"]["gateway_port"] == 18790
assert body["advanced"]["exec_enabled"] is True
assert body["advanced"]["mcp_server_count"] == 0