summaryrefslogtreecommitdiff
path: root/tests/test_build_text.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_build_text.py')
-rw-r--r--tests/test_build_text.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/test_build_text.py b/tests/test_build_text.py
index 014deeca3..5a1ec227f 100644
--- a/tests/test_build_text.py
+++ b/tests/test_build_text.py
@@ -99,3 +99,15 @@ def test_table_with_empty_cell(app, status, warning):
assert lines[4] == "+-------+-------+"
assert lines[5] == "| XXX | |"
assert lines[6] == "+-------+-------+"
+
+
+@with_text_app()
+def test_list_items_in_admonition(app, status, warning):
+ app.builder.build_update()
+ result = (app.outdir / 'listitems.txt').text(encoding='utf-8')
+ lines = [line.rstrip() for line in result.splitlines()]
+ assert lines[0] == "See also:"
+ assert lines[1] == ""
+ assert lines[2] == " * item 1"
+ assert lines[3] == ""
+ assert lines[4] == " * item 2"