(vfile)
| 1936 | |
| 1937 | |
| 1938 | def test_InMemoryArrayDataset_chunks(vfile): |
| 1939 | with vfile.stage_version("0") as sv: |
| 1940 | data_group = sv.create_group("data") |
| 1941 | data_group.create_dataset( |
| 1942 | "g/bar", |
| 1943 | data=np.arange(4), |
| 1944 | chunks=(100,), |
| 1945 | compression="gzip", |
| 1946 | compression_opts=3, |
| 1947 | ) |
| 1948 | assert isinstance(data_group["g/bar"].dataset, InMemoryArrayDataset) |
| 1949 | assert data_group["g/bar"].chunks == (100,) |
| 1950 | assert data_group["g/bar"].compression == "gzip" |
| 1951 | assert data_group["g/bar"].compression_opts == 3 |
| 1952 | |
| 1953 | |
| 1954 | @pytest.mark.parametrize( |
nothing calls this directly
no test coverage detected