mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Add a test
This commit is contained in:
parent
04b84e82a0
commit
23a4b61415
@ -0,0 +1,4 @@
|
||||
Regression test for issue 10495
|
||||
===============================
|
||||
|
||||
:kbd:`test - test`
|
@ -48,3 +48,11 @@ def test_missing_reference_conditional_pending_xref(app, status, warning):
|
||||
|
||||
content = (app.outdir / 'index.html').read_text(encoding='utf8')
|
||||
assert '<span class="n"><span class="pre">Age</span></span>' in content
|
||||
|
||||
|
||||
@pytest.mark.sphinx('html', testroot='transforms-post_transforms-keyboard',
|
||||
freshenv=True)
|
||||
def test_keyboard_issue_10495(app):
|
||||
"""Regression test for issue 10495, we want no crash."""
|
||||
app.build()
|
||||
assert "blah" in (app.outdir / 'index.html').read_text(encoding='utf8')
|
||||
|
Loading…
Reference in New Issue
Block a user