(
tmp_path_factory: pytest.TempPathFactory,
builder_cls: Type[dataset_builder.DatasetBuilder],
)
| 118 | |
| 119 | |
| 120 | def _make_dataset( |
| 121 | tmp_path_factory: pytest.TempPathFactory, |
| 122 | builder_cls: Type[dataset_builder.DatasetBuilder], |
| 123 | ) -> dataset_builder.DatasetBuilder: |
| 124 | tmp_path = tmp_path_factory.mktemp(f'global_{builder_cls.__name__}') |
| 125 | builder = builder_cls(data_dir=tmp_path) |
| 126 | builder.download_and_prepare() |
| 127 | return builder |
| 128 | |
| 129 | |
| 130 | @pytest.fixture(scope='session') |
no test coverage detected