(dataset, mockfs)
| 166 | |
| 167 | |
| 168 | def test_dataset_to_csv_fsspec(dataset, mockfs): |
| 169 | dataset_path = "mock://my_dataset.csv" |
| 170 | writer = CsvDatasetWriter(dataset, dataset_path, storage_options=mockfs.storage_options) |
| 171 | assert writer.write() > 0 |
| 172 | assert mockfs.isfile(dataset_path) |
| 173 | |
| 174 | with fsspec.open(dataset_path, "rb", **mockfs.storage_options) as f: |
| 175 | assert f.read() |
nothing calls this directly
no test coverage detected