Skip to content

Commit

Permalink
Added test for imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
NowanIlfideme committed Sep 13, 2021
1 parent 80cf781 commit 97daf9c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/test_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,12 @@
def test_import_basic():
"""This tests whether the `tsdata` package is importable."""
import tsdata # noqa


def test_import_raw():
"""This tests whether the `tsdata` package loads a dataset."""
from tsdata.raw import available_data, load_data

assert len(available_data()) > 0
assert "LakeHuron" in available_data()
load_data("LakeHuron")

0 comments on commit 97daf9c

Please sign in to comment.