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