Skip to content

Commit e325c3e

Browse files
committed
make pytest happy
1 parent 5f81c4f commit e325c3e

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

vetiver/data/__init__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ def __dir__():
1212

1313
def __getattr__(k):
1414
import pandas as pd
15-
16-
f_path = sources.get(k)
15+
f_path = None
16+
if k == "mtcars":
17+
f_path = sources.get("mtcars")
18+
elif k == "chicago":
19+
f_path = sources.get("chicago")
1720

1821
return pd.read_csv(f_path)

0 commit comments

Comments
 (0)