Skip to content

Commit 9c29d71

Browse files
authored
add test for "attr:;", ie empty value
1 parent 84ef0ef commit 9c29d71

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -889,6 +889,10 @@ def test_maybe_convert_css_to_tuples(self):
889889
#issue #59623
890890
expected = [("a", "b"), ("c", "url('data:123')")]
891891
assert maybe_convert_css_to_tuples("a:b;c: url('data:123');") == expected
892+
893+
#if no value, return attr and empty string
894+
expected = [("a", ""), ("c", "")]
895+
assert maybe_convert_css_to_tuples("a:;c: ") == expected
892896

893897

894898
def test_maybe_convert_css_to_tuples_err(self):

0 commit comments

Comments
 (0)