Skip to content

Commit

Permalink
absolute paths in recently-added tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TomNicholas committed Oct 19, 2024
1 parent bad0b1b commit 739a6bd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions virtualizarr/tests/test_manifests/test_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,8 @@ def test_concat_empty(self):
marr1 = ManifestArray(zarray=zarray, chunkmanifest=manifest1)

chunks_dict2 = {
"0.0.0": {"path": "foo.nc", "offset": 300, "length": 100},
"0.0.1": {"path": "foo.nc", "offset": 400, "length": 100},
"0.0.0": {"path": "/foo.nc", "offset": 300, "length": 100},
"0.0.1": {"path": "/foo.nc", "offset": 400, "length": 100},
}
manifest2 = ChunkManifest(entries=chunks_dict2)
marr2 = ManifestArray(zarray=zarray, chunkmanifest=manifest2)
Expand All @@ -311,8 +311,8 @@ def test_concat_empty(self):
assert result.shape == (5, 2, 20)
assert result.chunks == (5, 1, 10)
assert result.manifest.dict() == {
"0.1.0": {"path": "foo.nc", "offset": 300, "length": 100},
"0.1.1": {"path": "foo.nc", "offset": 400, "length": 100},
"0.1.0": {"path": "file:///foo.nc", "offset": 300, "length": 100},
"0.1.1": {"path": "file:///foo.nc", "offset": 400, "length": 100},
}
assert result.zarray.compressor == zarray.compressor
assert result.zarray.filters == zarray.filters
Expand Down

0 comments on commit 739a6bd

Please sign in to comment.