Skip to content

Commit 38013d2

Browse files
committed
cleanup: test_datasets
1 parent e40cae2 commit 38013d2

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

tests/test_datasets.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from typing import Any
2-
31
import pytest
42
from requests import ConnectionError
53

@@ -22,16 +20,13 @@ def test_dataset_constructor() -> None:
2220
Datasets(db, metadata_file=bad_metadata_url)
2321

2422

25-
def test_list_datasets(capfd: Any) -> None:
23+
def test_list_datasets() -> None:
2624
datasets = Datasets(db, metadata_file=test_metadata_url).list_datasets()
2725
assert type(datasets) is list
2826
assert "TEST" in datasets
2927

30-
out, _ = capfd.readouterr()
31-
assert "TEST" in out
32-
3328

34-
def test_dataset_info(capfd: Any) -> None:
29+
def test_dataset_info() -> None:
3530
with pytest.raises(ValueError):
3631
Datasets(db).dataset_info("invalid")
3732

@@ -45,9 +40,6 @@ def test_dataset_info(capfd: Any) -> None:
4540
assert type(dataset) is dict
4641
assert dataset["file_type"] == "jsonl"
4742

48-
out, _ = capfd.readouterr()
49-
assert len(out.replace("\n", "")) > 0
50-
5143

5244
def test_load_json() -> None:
5345
cleanup_collections()

0 commit comments

Comments
 (0)