Skip to content

refactor styler tests #39946

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

Merged
merged 8 commits into from
Feb 22, 2021
Merged

refactor styler tests #39946

merged 8 commits into from
Feb 22, 2021

Conversation

attack68
Copy link
Contributor

splits test_style.py to style/test_style.py and style/test_builtins.py, with the simple classification of being related to core functionality or added extensions.

.set_tooltips_class(name="other-class", properties=[("color", "green")])
.render()
)
assert "#T__ .other-class {\n color: green;\n" in s
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

split to more modules, e.g. tooltips to separate, the highlite* to a separate on, and rename this to align

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done



@td.skip_if_no_mpl
class TestStylerMatplotlibDep:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move to this to test_matplotlib.py

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could not find. used existing file tests/plotting/test_style.py instead. test_misc.py also seemed a good alternative.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these are all new modules.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

duh.. my bad, assumed you were pointing to existing file

@jreback jreback added Styler conditional formatting using DataFrame.style Testing pandas testing functions or related to the test suite labels Feb 21, 2021
@jreback jreback added this to the 1.3 milestone Feb 21, 2021
@attack68 attack68 requested a review from jreback February 22, 2021 18:16
@jreback jreback merged commit 9f812db into pandas-dev:master Feb 22, 2021
@jreback
Copy link
Contributor

jreback commented Feb 22, 2021

great thanks @attack68

@attack68 attack68 deleted the split_style_tests branch February 23, 2021 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Styler conditional formatting using DataFrame.style Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants