Datasets:
Download tests/DrawBench_test.py from shunk031/DrawBench: direct link, hf CLI and curl.
- Browser
- Download file 287 Bytes
-
https://huggingface.co/datasets/shunk031/DrawBench/resolve/main/tests/DrawBench_test.py
- Command line
-
hf download hf://datasets/shunk031/DrawBench/tests/DrawBench_test.py
-
curl -L -o DrawBench_test.py https://huggingface.co/datasets/shunk031/DrawBench/resolve/main/tests/DrawBench_test.py
287 Bytes
| import datasets as ds | |
| import pytest | |
| def dataset_path() -> str: | |
| return "DrawBench.py" | |
| def test_load_dataset(dataset_path: str, expected_num_test: int = 200): | |
| dataset = ds.load_dataset(path=dataset_path) | |
| assert dataset["test"].num_rows == expected_num_test | |