Skip to content

Commit b885bb2

Browse files
committed
test: cover Python copy metadata
Stainless-Generated-From: 72c539aaa62c2866981403cc86b3850b21514e61
1 parent 870bee9 commit b885bb2

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/lib/test_websocket_lib.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,10 @@ def test_cp_upload_file_preserves_mode_and_reports_progress(tmp_path: Path) -> N
283283

284284
def test_cp_upload_archive_includes_root_ownership(tmp_path: Path) -> None:
285285
entry = _UploadEntry(tmp_path, "/guest/file", False, 0o644, 0, 0, 0)
286+
request = json.loads(_request(entry))
286287

287-
assert json.loads(_request(entry))["uid"] == 0
288-
assert json.loads(_request(entry))["gid"] == 0
288+
assert request["uid"] == 0
289+
assert request["gid"] == 0
289290

290291

291292
def test_cp_upload_directory_uses_one_connection_per_entry(tmp_path: Path) -> None:

0 commit comments

Comments
 (0)