File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -1702,15 +1702,23 @@ def test_tooltip_render(self):
1702
1702
assert "#T__ .pd-t {" in s .render ()
1703
1703
# test 'min' tooltip added
1704
1704
assert (
1705
- '#T__ #T__row0_col0:hover .pd-t {\n visibility: visible;\n } #T__ #T__row0_col0 .pd-t::after {\n content: "Min";\n }'
1705
+ "#T__ #T__row0_col0:hover .pd-t {\n visibility: visible;\n } "
1706
+ + '#T__ #T__row0_col0 .pd-t::after {\n content: "Min";\n }'
1706
1707
in s .render ()
1707
1708
)
1708
1709
# test 'max' tooltip added
1709
1710
assert (
1710
- '#T__ #T__row1_col1:hover .pd-t {\n visibility: visible;\n } #T__ #T__row1_col1 .pd-t::after {\n content: "Max";\n }'
1711
+ "#T__ #T__row1_col1:hover .pd-t {\n visibility: visible;\n } "
1712
+ + '#T__ #T__row1_col1 .pd-t::after {\n content: "Max";\n }'
1711
1713
in s .render ()
1712
1714
)
1713
1715
1716
+ def test_tooltip_ignored (self ):
1717
+ # GH XXXXX
1718
+ df = pd .DataFrame (data = [[0 , 1 ], [2 , 3 ]])
1719
+ s = Styler (df , uuid = "_" ) # no set_tooltips()
1720
+ assert '<style type="text/css" >\n </style>' in s .render ()
1721
+
1714
1722
1715
1723
@td .skip_if_no_mpl
1716
1724
class TestStylerMatplotlibDep :
You can’t perform that action at this time.
0 commit comments