-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TST: refactored Excel reader tests #10964
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
can you report the number of tests on current master (for the excel stuff) and number on this branch. Trying to figure out if anything is left out. |
With this PR I have the following:
and with 9bdae60 (same as above minus the 2 commits of this PR) I get:
I have 10 skipped tests with openpyxl=1.8.6 being indicated as incompatible (the same for both this PR and 9bdae60). With openpyxl=2.2.4 I get failures that I haven't look into yet, but I also get these failures with 9bdae60. These failures are most likely due to my system since Travis is not complaining about them, but I will have to investigate this further to figure out what exactly is going on. |
@chris-b1 can you have a look here |
""" | ||
Return a DataFrame as read by the Python csv engine and a DataFrame | ||
as read by the ExcelFile engine. Test data path is defined by | ||
pandas.util.testing.get_data_path() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be more clear it returns 1 or 2 items? Part of me thinks it should just be two functions.
Added a couple comments, overall approach seems pretty reasonable. |
@chris-b1 does this sufficiently address your comments? |
@davidovitch pls squash. |
ok, going to merge this, @chris-b1 you will prob need to rebase your excel pr |
merged via 98b3a5d thanks! |
I fixed this in my other PR when I rebased.
|
ah ok, great! No need for PR #11009, closed now. |
This PR implements more flexible Excel (spreadsheet) reader tests. The work was originally part of the larger but unsuccessful PR #9070.
This PR includes:
test
totest1
(for xls, xlsm, xlsx extensions) for consistency withtest2..4
test data files. This also means that before merging (but after Travis has ran the tests) the URL of Excel test filetest1.*
has to be changed fromdavidovitch/pandas
topydata/pandas
inpandas/io/tests/test_excel.py
at line 378.