Skip to content

Commit 087501b

Browse files
committed
Read back html
1 parent 6b2ae08 commit 087501b

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

tests/test_needimport.py

+13-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def test_import_json(test_app):
6262
"needs": {
6363
"TEST_01": {
6464
"id": "TEST_01",
65-
"title": "TEST IMPORT DESCRIPTION",
65+
"title": "TEST IMPORT TITLE",
6666
"type": "impl"
6767
}
6868
},
@@ -108,6 +108,10 @@ def test_import_rel_abs_sphinx_paths(test_app, index_content):
108108
assert app.statuscode == 0
109109
assert not app.warning_list
110110

111+
html = Path(app.outdir, "index.html").read_text()
112+
assert "TEST IMPORT TITLE" in html
113+
assert "TEST_01" in html
114+
111115

112116
@pytest.mark.parametrize("path_sep", ["/", "\\", "\\\\"])
113117
@pytest.mark.parametrize(
@@ -138,6 +142,10 @@ def test_import_abs_paths_win(test_app, path_sep):
138142
assert app.statuscode == 0
139143
assert not app.warning_list
140144

145+
html = Path(app.outdir, "index.html").read_text()
146+
assert "TEST IMPORT TITLE" in html
147+
assert "TEST_01" in html
148+
141149

142150
@pytest.mark.parametrize(
143151
"test_app",
@@ -166,6 +174,10 @@ def test_import_abs_paths_lin_mac(test_app):
166174
assert app.statuscode == 0
167175
assert not app.warning_list
168176

177+
html = Path(app.outdir, "index.html").read_text()
178+
assert "TEST IMPORT TITLE" in html
179+
assert "TEST_01" in html
180+
169181

170182
@pytest.mark.parametrize(
171183
"test_app",

0 commit comments

Comments
 (0)