Merge pull request #4095 from Andne/cpp-tests

Cleanup the C++/Intersphinx test to avoid std namespace
This commit is contained in:
Jakob Lykke Andersen 2017-09-28 21:52:30 +02:00 committed by GitHub
commit a3b66eb095
3 changed files with 10 additions and 1 deletions

View File

@ -5,4 +5,4 @@ test-ext-intersphinx-cppdomain
:cpp:class:`Bar`
.. cpp:function:: std::uint8_t FooBarBaz()
.. cpp:function:: foons::bartype FooBarBaz()

View File

@ -232,6 +232,13 @@ def test_missing_reference_cppdomain(tempdir, app, status, warning):
' href="https://docs.python.org/index.html#cpp_foo_bar"'
' title="(in foo v2.0)"><code class="xref cpp cpp-class docutils literal">'
'<span class="pre">Bar</span></code></a>' in html)
assert ('<a class="reference external"'
' href="https://docs.python.org/index.html#foons"'
' title="(in foo v2.0)">foons</a>' in html)
assert ('<a class="reference external"'
' href="https://docs.python.org/index.html#foons_bartype"'
' title="(in foo v2.0)">bartype</a>' in html)
def test_missing_reference_jsdomain(tempdir, app, status, warning):

View File

@ -38,6 +38,8 @@ std cpp:type 1 index.html#std -
std::uint8_t cpp:type 1 index.html#std_uint8_t -
foo::Bar cpp:class 1 index.html#cpp_foo_bar -
foo::Bar::baz cpp:function 1 index.html#cpp_foo_bar_baz -
foons cpp:type 1 index.html#foons -
foons::bartype cpp:type 1 index.html#foons_bartype -
a term std:term -1 glossary.html#term-a-term -
ls.-l std:cmdoption 1 index.html#cmdoption-ls-l -
docname std:doc -1 docname.html -