diff --git a/pandas/tests/io/formats/style/test_style.py b/pandas/tests/io/formats/style/test_style.py index 915497e614b3a..88a0676cf3aec 100644 --- a/pandas/tests/io/formats/style/test_style.py +++ b/pandas/tests/io/formats/style/test_style.py @@ -839,12 +839,16 @@ def test_table_styles_multiple(self): def test_table_styles_dict_multiple_selectors(self): # GH 44011 result = self.df.style.set_table_styles( - [{"selector": "th,td", "props": [("border-left", "2px solid black")]}] + { + "B": [ + {"selector": "th,td", "props": [("border-left", "2px solid black")]} + ] + } )._translate(True, True)["table_styles"] expected = [ - {"selector": "th", "props": [("border-left", "2px solid black")]}, - {"selector": "td", "props": [("border-left", "2px solid black")]}, + {"selector": "th.col1", "props": [("border-left", "2px solid black")]}, + {"selector": "td.col1", "props": [("border-left", "2px solid black")]}, ] assert result == expected