Datasets:
File size: 287 Bytes
6324c60 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
import datasets as ds
import pytest
@pytest.fixture
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
|