File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change 1
- from typing import Any
2
-
3
1
import pytest
4
2
from requests import ConnectionError
5
3
@@ -22,16 +20,13 @@ def test_dataset_constructor() -> None:
22
20
Datasets (db , metadata_file = bad_metadata_url )
23
21
24
22
25
- def test_list_datasets (capfd : Any ) -> None :
23
+ def test_list_datasets () -> None :
26
24
datasets = Datasets (db , metadata_file = test_metadata_url ).list_datasets ()
27
25
assert type (datasets ) is list
28
26
assert "TEST" in datasets
29
27
30
- out , _ = capfd .readouterr ()
31
- assert "TEST" in out
32
-
33
28
34
- def test_dataset_info (capfd : Any ) -> None :
29
+ def test_dataset_info () -> None :
35
30
with pytest .raises (ValueError ):
36
31
Datasets (db ).dataset_info ("invalid" )
37
32
@@ -45,9 +40,6 @@ def test_dataset_info(capfd: Any) -> None:
45
40
assert type (dataset ) is dict
46
41
assert dataset ["file_type" ] == "jsonl"
47
42
48
- out , _ = capfd .readouterr ()
49
- assert len (out .replace ("\n " , "" )) > 0
50
-
51
43
52
44
def test_load_json () -> None :
53
45
cleanup_collections ()
You can’t perform that action at this time.
0 commit comments