intersphinx: explicitly parse out inventory specification

This commit is contained in:
Jakob Lykke Andersen
2021-07-13 13:41:41 +02:00
parent 454a1c599e
commit 36c6eafdf1
3 changed files with 16 additions and 0 deletions

View File

@@ -558,3 +558,5 @@ def test_intersphinx_role(app):
html = '<a class="reference external" href="http://example.org/{}" title="(in foo v2.0)">'
for t in targets:
assert html.format(t) in content
assert html.format('index.html#cpp_foo_bar_baz') not in content