(tempdir, dataset_reader, pickle_module)
| 2795 | |
| 2796 | @pytest.mark.parquet |
| 2797 | def test_open_union_dataset(tempdir, dataset_reader, pickle_module): |
| 2798 | _, path = _create_single_file(tempdir) |
| 2799 | dataset = ds.dataset(path) |
| 2800 | |
| 2801 | union = ds.dataset([dataset, dataset]) |
| 2802 | assert isinstance(union, ds.UnionDataset) |
| 2803 | |
| 2804 | pickled = pickle_module.loads(pickle_module.dumps(union)) |
| 2805 | assert dataset_reader.to_table(pickled) == dataset_reader.to_table(union) |
| 2806 | |
| 2807 | |
| 2808 | def test_open_union_dataset_with_additional_kwargs(multisourcefs): |
nothing calls this directly
no test coverage detected