Skip to content

Commit f111464

Browse files
committed
test: add a xfail test for definition lists
Fixing it will probably need a re-design.
1 parent 95b9762 commit f111464

1 file changed

Lines changed: 21 additions & 2 deletions

File tree

tests/wikitext/test_get_lists.py

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from pytest import warns
1+
from pytest import warns, mark
22

33
from wikitextparser import ParserFunction, parse
44

@@ -103,4 +103,23 @@ def test_listitems_with_different_patterns():
103103

104104
lists = l0_0.get_lists()
105105
assert len(lists) == 4
106-
assert [l.items for l in lists] == [['b'], ['c'], ['d'], ['e']]
106+
assert [li.items for li in lists] == [['b'], ['c'], ['d'], ['e']]
107+
108+
109+
@mark.xfail
110+
def test_dl_with_second_pattern():
111+
# <dl>
112+
# <dt>a</dt>
113+
# <dd>
114+
# <dl>
115+
# <dt>1</dt>
116+
# <dt>b</dt>
117+
# <dd>2</dd>
118+
# </dl>
119+
# </dd>
120+
# </dl>
121+
# <dl>
122+
# <dt>c</dt>
123+
# <dd>3</dd>
124+
# </dl>
125+
assert len(parse(';;a:1\n;;b:2\n;c:3\n').get_lists()) == 2

0 commit comments

Comments
 (0)