Skip to content

Commit c0e331a

Browse files
committed
tests: add pins v0 compat tests
1 parent 08b265f commit c0e331a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import pandas as pd
2+
3+
from importlib_resources import files
4+
5+
from pins import board_folder
6+
7+
OLD_BOARD = files("pins") / "tests" / "pins-old-types"
8+
DST_DF = pd.DataFrame({"a": [1, 2], "b": ["x", "y"]})
9+
10+
11+
def test_compat_old_types_load_table():
12+
board = board_folder(OLD_BOARD)
13+
src_df = board.pin_read("a-table")
14+
15+
assert isinstance(src_df, pd.DataFrame)
16+
assert src_df.equals(DST_DF)

0 commit comments

Comments
 (0)