Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

fix(cache): restore value equality in blob asset round-trip test (#11426)

Trevor Manz9dc2bc81104e
diff --git a/tests/_save/stubs/test_lazy_asset_codec.py b/tests/_save/stubs/test_lazy_asset_codec.py
index 37beda7d00..d40a64e957 100644
--- a/tests/_save/stubs/test_lazy_asset_codec.py
+++ b/tests/_save/stubs/test_lazy_asset_codec.py
@@ -59,6 +59,9 @@ def test_lazy_loader_round_trips_blob_asset() -> None:
assert loader.save_cache(cache)
loader.flush()
+ assert (
+ Path("asset-test") / "asset_hash" / "preview.bin"
+ ).as_posix() in store._cache
assert (
Path("asset-test") / "asset_hash" / "return.bin"
).as_posix() in store._cache
@@ -66,4 +69,4 @@ def test_lazy_loader_round_trips_blob_asset() -> None:
assert loaded is not None
assert loaded.defs == {"preview": asset}
- assert loaded.meta["return"] is loaded.defs["preview"]
+ assert loaded.meta["return"] == asset