(tempdir)
| 3894 | @pytest.mark.parquet |
| 3895 | @pytest.mark.pandas |
| 3896 | def test_parquet_dataset_factory_invalid(tempdir): |
| 3897 | root_path = tempdir / "test_parquet_dataset_invalid" |
| 3898 | metadata_path, table = _create_parquet_dataset_simple(root_path) |
| 3899 | # remove one of the files |
| 3900 | list(root_path.glob("*.parquet"))[0].unlink() |
| 3901 | dataset = ds.parquet_dataset(metadata_path) |
| 3902 | assert dataset.schema.equals(table.schema) |
| 3903 | assert len(dataset.files) == 4 |
| 3904 | with pytest.raises(FileNotFoundError): |
| 3905 | dataset.to_table() |
| 3906 | |
| 3907 | |
| 3908 | def _create_metadata_file(root_path): |
nothing calls this directly
no test coverage detected