Skip to content

Commit 28ec59c

Browse files
authored
added testcase for maybe_convert_css_to_tuples
#59623
1 parent 2110ecb commit 28ec59c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pandas/tests/io/formats/style/test_style.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -886,6 +886,11 @@ def test_maybe_convert_css_to_tuples(self):
886886
expected = []
887887
assert maybe_convert_css_to_tuples("") == expected
888888

889+
#issue #59623
890+
expected = [("a", "b"), ("c", "url('data:123')")]
891+
assert maybe_convert_css_to_tuples("a:b;c: url('data:123');") == expected
892+
893+
889894
def test_maybe_convert_css_to_tuples_err(self):
890895
msg = "Styles supplied as string must follow CSS rule formats"
891896
with pytest.raises(ValueError, match=msg):

0 commit comments

Comments
 (0)