Skip to content

Commit ea303bd

Browse files
committed
test(sandbox): assert LocalFile checksum
1 parent 75ba2ce commit ea303bd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/sandbox/test_entries.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from __future__ import annotations
22

3+
import hashlib
34
import io
45
import os
56
from collections.abc import Awaitable, Callable, Sequence
@@ -124,6 +125,7 @@ async def test_base_sandbox_session_uses_current_working_directory_for_local_fil
124125
result = await session.apply_manifest()
125126

126127
assert result.files[0].path == Path("/workspace/copied.txt")
128+
assert result.files[0].sha256 == hashlib.sha256(b"hello").hexdigest()
127129
assert session.writes[Path("/workspace/copied.txt")] == b"hello"
128130

129131

0 commit comments

Comments
 (0)