(vfile)
| 1664 | |
| 1665 | |
| 1666 | def test_InMemoryArrayDataset_chunks(vfile): |
| 1667 | with vfile.stage_version("0") as sv: |
| 1668 | data_group = sv.create_group("data") |
| 1669 | data_group.create_dataset( |
| 1670 | "g/bar", |
| 1671 | data=np.arange(4), |
| 1672 | chunks=(100,), |
| 1673 | compression="gzip", |
| 1674 | compression_opts=3, |
| 1675 | ) |
| 1676 | assert isinstance(data_group["g/bar"].dataset, InMemoryArrayDataset) |
| 1677 | assert data_group["g/bar"].chunks == (100,) |
| 1678 | assert data_group["g/bar"].compression == "gzip" |
| 1679 | assert data_group["g/bar"].compression_opts == 3 |
| 1680 | |
| 1681 | |
| 1682 | @pytest.mark.parametrize( |
nothing calls this directly
no test coverage detected