Delete tests/Magazine_test.py
Browse files- tests/Magazine_test.py +0 -27
tests/Magazine_test.py
DELETED
@@ -1,27 +0,0 @@
|
|
1 |
-
import os
|
2 |
-
|
3 |
-
import pytest
|
4 |
-
|
5 |
-
import datasets as ds
|
6 |
-
|
7 |
-
|
8 |
-
@pytest.fixture
|
9 |
-
def dataset_path() -> str:
|
10 |
-
return "Magazine.py"
|
11 |
-
|
12 |
-
|
13 |
-
@pytest.mark.skipif(
|
14 |
-
condition=bool(os.environ.get("CI", False)),
|
15 |
-
reason=(
|
16 |
-
"Because this loading script downloads a large dataset, "
|
17 |
-
"we will skip running it on CI."
|
18 |
-
),
|
19 |
-
)
|
20 |
-
@pytest.mark.parametrize(
|
21 |
-
argnames=("expected_num_dataset",),
|
22 |
-
argvalues=((3919,),),
|
23 |
-
)
|
24 |
-
def test_load_dataset(dataset_path: str, expected_num_dataset: int):
|
25 |
-
dataset = ds.load_dataset(path=dataset_path, token=True)
|
26 |
-
|
27 |
-
assert dataset["train"].num_rows == expected_num_dataset
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|