Skip to content

Commit bbf7b57

Browse files
committed
#9 Update test for cli module
1 parent 96c6e07 commit bbf7b57

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

tests/test_cli.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
# standard library
2-
from pkgutil import get_data
2+
from os import environ as env
33

44

55
# dependencies
66
from deshima_rawdata import cli
77

88

9-
# constants
10-
DATA_LIST = get_data("deshima_rawdata", "data.csv")
11-
12-
13-
def test_download() -> None:
14-
pass
9+
def test_cli_download() -> None:
10+
for obsid in cli.DATA_LIST.index:
11+
cli.download(obsid, tag=env["GITHUB_SHA"])
1512

1613

1714
def test_cli_list() -> None:
18-
assert cli.list("csv") == DATA_LIST.decode()
15+
assert cli.list("csv") == cli.DATA_LIST.to_csv()

0 commit comments

Comments
 (0)