diff options
Diffstat (limited to 'packages/meshbay-node/tests/test_roster_pairing.py')
| -rw-r--r-- | packages/meshbay-node/tests/test_roster_pairing.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/meshbay-node/tests/test_roster_pairing.py b/packages/meshbay-node/tests/test_roster_pairing.py index a2d0f8b..5c94855 100644 --- a/packages/meshbay-node/tests/test_roster_pairing.py +++ b/packages/meshbay-node/tests/test_roster_pairing.py @@ -634,7 +634,7 @@ def test_code_lifetimes_are_configurable(tmp_path): path.write_text( '[hub]\nurl = "https://example.org"\nusername = "grenet"\n' "[node]\ninvite_ttl_hours = 72\npair_ttl_hours = 2\n" - ) + , encoding="utf-8") cfg = load_config(path) assert cfg.node.invite_ttl_hours == 72 assert cfg.node.pair_ttl_hours == 2 @@ -924,7 +924,7 @@ async def test_group_add_appends_without_rewriting_the_file(tmp_path): conf = tmp_path / "node.toml" conf.write_text( '# keep me\n[hub]\nurl = "https://meshbay.org"\nusername = "grenet"\n\n' - '[[groups]]\nid = "aaaa"\nname = "first"\nshared_dir = "/tmp/a"\n') + '[[groups]]\nid = "aaaa"\nname = "first"\nshared_dir = "/tmp/a"\n', encoding="utf-8") block = ('\n[[groups]]\n' 'id = "bbbb"\n' @@ -974,7 +974,7 @@ async def test_a_directory_with_anything_in_it_is_refused(tmp_path, roster): session = await _dir_session(tmp_path, roster) full = tmp_path / "shared" / "full" full.mkdir() - (full / "keep.txt").write_text("still here") + (full / "keep.txt").write_text("still here", encoding="utf-8") await session._do_dir_delete({"dir": "shared/full"}) |