aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-node/tests/test_attach_from_the_hub.py
diff options
context:
space:
mode:
authorChristophe Besson <cbesson@gmail.com>2026-10-02 08:41:22 +0200
committerChristophe Besson <cbesson@gmail.com>2026-10-02 08:41:23 +0200
commit56a8cf9167e8c7b0f2df15afed88031608adf782 (patch)
tree69bd16b7016fbaf95c16ad828d0ea29ac16a65f9 /packages/meshbay-node/tests/test_attach_from_the_hub.py
parente941cc4c39c38a12220153ea572bd4c7bb92fde0 (diff)
downloadmeshbay-56a8cf9167e8c7b0f2df15afed88031608adf782.tar.gz
test(node): node.toml fixtures use POSIX paths, and a Windows-impossible folder is skipped
The root fixtures wrote `path = C:\Users\...`, which is not valid TOML: node_toml now reads values with tomllib, so the four tests failed on Windows. The node and the app always write paths with `/`, as the other fixtures do. A folder named with a quote and a newline cannot exist on Windows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-node/tests/test_attach_from_the_hub.py')
-rw-r--r--packages/meshbay-node/tests/test_attach_from_the_hub.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/meshbay-node/tests/test_attach_from_the_hub.py b/packages/meshbay-node/tests/test_attach_from_the_hub.py
index f4aaa25..acc9d18 100644
--- a/packages/meshbay-node/tests/test_attach_from_the_hub.py
+++ b/packages/meshbay-node/tests/test_attach_from_the_hub.py
@@ -10,6 +10,7 @@ group name chosen on the hub, a folder name — so none of it may end a TOML
string and write lines of its own.
"""
+import sys
import tomllib
from pathlib import Path
@@ -79,6 +80,9 @@ async def test_a_group_name_cannot_write_lines_into_node_toml(tmp_path):
assert hosted["node"]["ui_port"] == 18000
+@pytest.mark.skipif(sys.platform == "win32",
+ reason="Windows refuses a quote or a newline in a folder name, and a "
+ "path is written with `/`: there is no such folder to write")
async def test_a_folder_name_cannot_either(tmp_path):
state = _state(tmp_path, {"id": GID, "name": "Films"})
await ops.attach_group(state, "Films", str(tmp_path / "share"))