diff options
Diffstat (limited to 'packages/meshbay-node/tests/test_root_paths_are_operator_only.py')
| -rw-r--r-- | packages/meshbay-node/tests/test_root_paths_are_operator_only.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/meshbay-node/tests/test_root_paths_are_operator_only.py b/packages/meshbay-node/tests/test_root_paths_are_operator_only.py index e00f1cf..646c7b4 100644 --- a/packages/meshbay-node/tests/test_root_paths_are_operator_only.py +++ b/packages/meshbay-node/tests/test_root_paths_are_operator_only.py @@ -122,7 +122,7 @@ def test_the_cli_only_reads_fields_the_payload_carries(monkeypatch, tmp_path, ca "groups": [{"id": gid, "roots": [_Recording(offered)]}]}) patch_cli(monkeypatch, "_resolve_group", lambda cfg, g: gid) conf = tmp_path / "node.toml" - conf.write_text('[hub]\nurl = "https://example.invalid"\n') + conf.write_text('[hub]\nurl = "https://example.invalid"\n', encoding="utf-8") patch_cli(monkeypatch, "DEFAULT_CONFIG_PATH", conf) # A stub missed would otherwise reach the node running on this machine. monkeypatch.setenv("HOME", str(tmp_path / "home")) @@ -131,7 +131,7 @@ def test_the_cli_only_reads_fields_the_payload_carries(monkeypatch, tmp_path, ca daemon_mod.main() assert read, "the root CLI no longer reads the payload this way" - assert "/tmp/x" in capsys.readouterr().out + assert str(Path("/tmp/x")) in capsys.readouterr().out assert read <= set(offered), ( f"the `root` CLI reads keys the loopback payload does not carry: " f"{sorted(read - set(offered))}") |