Skip to content

Commit 6a69f83

Browse files
committed
improve test
1 parent 95e4771 commit 6a69f83

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas/tests/io/formats/test_style.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1726,8 +1726,9 @@ def test_tooltip_render(self):
17261726
def test_tooltip_ignored(self):
17271727
# GH 21266
17281728
df = pd.DataFrame(data=[[0, 1], [2, 3]])
1729-
s = Styler(df, uuid="_") # no set_tooltips()
1730-
assert '<style type="text/css" >\n</style>' in s.render()
1729+
s = Styler(df, uuid="_").set_tooltip_class("pd-t").render() # no set_tooltips()
1730+
assert '<style type="text/css" >\n</style>' in s
1731+
assert '<span class="pd-t"></span>' not in s
17311732

17321733

17331734
@td.skip_if_no_mpl

0 commit comments

Comments
 (0)