Skip to content

Commit 0d0faa9

Browse files
committed
Add test for the signature of pd.ExcelFile.
1 parent 0fc1cc5 commit 0d0faa9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/test_io.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,6 +1116,14 @@ def test_excel_reader():
11161116
check(assert_type(ef, pd.ExcelFile), pd.ExcelFile)
11171117
check(assert_type(pd.read_excel(ef), pd.DataFrame), pd.DataFrame)
11181118

1119+
with pd.ExcelFile(
1120+
path_or_buffer=path,
1121+
engine="openpyxl",
1122+
engine_kwargs={"data_only": True},
1123+
) as ef:
1124+
check(assert_type(ef, pd.ExcelFile), pd.ExcelFile)
1125+
check(assert_type(pd.read_excel(ef), pd.DataFrame), pd.DataFrame)
1126+
11191127

11201128
def test_excel_writer():
11211129
with ensure_clean(".xlsx") as path:

0 commit comments

Comments
 (0)