-
-
Notifications
You must be signed in to change notification settings - Fork 19.4k
TST: Add xfail tests for Excel header autofilter (openpyxl/xlsxwriter) #62928
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
|
Hi @rhshadrach, I hope you’re doing well. |
rhshadrach
left a comment
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.
Thanks for the PR! I think this is looking good. Unfortunately it seems that odfpy does not provide a reasonable way to add an autofilter. If that is the case, I think we should raise when autofilter=True is passed and this engine is used. Can you add this and a test.
Can you also add tests for:
- nonzero startrow / startcol
- A DataFrame with MultiIndex columns (also called a hierarchical index) with both
merge_cells=Trueandmerge_cells=False.
Okay, Im working on them now |
2558c20 to
e4012f0
Compare
|
Hi @rhshadrach . |
8e3abb2 to
44010db
Compare
|
@antznette1 - tests are failing, are you able to run them locally? Also I want to mention #62994 is looking to add the same feature and appears close to being ready. |
Yes, I can run locally. I realized my branch currently adds tests that assert behavior for an API not on main yet (and I left some debug prints). I’m cleaning that up now. |
|
@antznette1 - each merge of main kicks off a full CI run. This is not necessary to do multiple times a day; once a week is sufficient. |
Thanks for the heads-up. I’ll avoid frequent merges of |
|
@rhshadrach I want to ask about the #62994 progress so I can convert from xfail |
|
@antznette1 - #62994 has been merged; I'm not sure if the tests here expand our coverage or are duplicative of the tests there. Can you take a look. |
I removed the duplicates so that the tests are in engine-specific files, which helps with:
These tests expand coverage by adding edge cases not covered in PR #62994. |
I think we should prefer parametrized tests. This then will automatically apply to engines that are to be added in the future, and makes removing engines easier as well. In particular, I do not think we should have tests in |
Thanks for the suggestion. I’ve rebased this branch on main so it now includes the parametrized autofilter tests in TestExcelWriter in test_writers.py. To avoid duplicated coverage:
|
5cb6365 to
1b5b02c
Compare
@rhshadrach