-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TST: test_highlight.py
convert to functional tests not class
#40551
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
TST: test_highlight.py
convert to functional tests not class
#40551
Conversation
def test_highlight_null_subset(s): | ||
# GH 31345 | ||
result = ( | ||
s.highlight_null(null_color="red", subset=["A"]) |
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.
nit: can you line these up on the periods
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.
black
does the aligning here, not me.
result = getattr(df.style, f)(axis=1, color="red")._compute().ctx | ||
assert result == expected | ||
@pytest.fixture | ||
def s(df): |
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 you call this maybe styler, s is too short
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.
done
thanks @attack68 |
pytest.fixture
instead of Class setup method