summaryrefslogtreecommitdiff
path: root/tests/test_ext_autosummary.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2020-06-29 02:04:40 +0900
committerGitHub <noreply@github.com>2020-06-29 02:04:40 +0900
commitc4f0d70d173393a167bd20af1cd2153e06e6b5ae (patch)
tree2f4b80129046acaa48f3fa92e33142a32b54af2b /tests/test_ext_autosummary.py
parent2d69b4211a702b27417bb28d0c2e1486b91b35f5 (diff)
parent144af81545b7d73a9e1a8daa2d855e9cdeba8854 (diff)
downloadsphinx-git-c4f0d70d173393a167bd20af1cd2153e06e6b5ae.tar.gz
Merge branch '3.x' into 7865_extract_abbr
Diffstat (limited to 'tests/test_ext_autosummary.py')
-rw-r--r--tests/test_ext_autosummary.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_ext_autosummary.py b/tests/test_ext_autosummary.py
index 73fab7cb9..3dd90b8ce 100644
--- a/tests/test_ext_autosummary.py
+++ b/tests/test_ext_autosummary.py
@@ -108,6 +108,12 @@ def test_extract_summary(capsys):
'=========']
assert extract_summary(doc, document) == 'blah blah'
+ # hyperlink target
+ doc = ['Do `this <https://www.sphinx-doc.org/>`_ and that. '
+ 'blah blah blah.']
+ assert (extract_summary(doc, document) ==
+ 'Do `this <https://www.sphinx-doc.org/>`_ and that.')
+
_, err = capsys.readouterr()
assert err == ''