Skip to content

TST: test_tooltip.py convert to functional tests instead of class #40550

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 5 commits into from
Mar 23, 2021

Conversation

attack68
Copy link
Contributor

  • adds pytest.fixture instead of Class setup method.
  • removes test_tooltip_reindex since it is already being tested by test_tooltip_render
  • other tests no changes except adopting fixtures

@attack68 attack68 added Testing pandas testing functions or related to the test suite Styler conditional formatting using DataFrame.style Clean labels Mar 21, 2021
assert "#T__ .other-class {\n color: green;\n color: red;\n}" in s


@pytest.fixture
Copy link
Contributor

Choose a reason for hiding this comment

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

same, make this styler

put these in a conftest.py to share across all tests in this dir

Copy link
Contributor Author

Choose a reason for hiding this comment

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

name changed.

currently the dfand styler in different modules are different. Can do a followup to implement consistent and universal fixtures.

Copy link
Contributor

Choose a reason for hiding this comment

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

oh i c, ok then

@jreback jreback added this to the 1.3 milestone Mar 22, 2021
@jreback jreback merged commit e56403f into pandas-dev:master Mar 23, 2021
@jreback
Copy link
Contributor

jreback commented Mar 23, 2021

thanks @attack68

@attack68 attack68 deleted the test_tootip_no_class_format branch March 23, 2021 16:24
JulianWgs pushed a commit to JulianWgs/pandas that referenced this pull request Jul 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Clean 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