mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-05-20 16:42:25 +00:00
fix(tests): make settings workspace path portable
This commit is contained in:
parent
e00220bdb6
commit
1391aa3d57
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user