Skip to content

Commit

Permalink
Merge branch 'mkdocstrings:master' into refver
Browse files Browse the repository at this point in the history
  • Loading branch information
oprypin committed May 8, 2021
2 parents d1b349e + 3838ba0 commit a660c5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_extension.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the extension module."""
import re
import sys
from collections import ChainMap
from textwrap import dedent
Expand Down Expand Up @@ -90,8 +91,7 @@ def test_keeps_preceding_text(ext_markdown):
def test_reference_inside_autodoc(ext_markdown):
"""Assert cross-reference Markdown extension works correctly."""
output = ext_markdown.convert("::: tests.fixtures.cross_reference")
snippet = 'Link to <span data-mkdocstrings-identifier="something.Else">something.Else</span>.'
assert snippet in output
assert re.search(r"Link to <.*something\.Else.*>something\.Else<.*>\.", output)


@pytest.mark.skipif(sys.version_info < (3, 8), reason="typing.Literal requires Python 3.8")
Expand Down

0 comments on commit a660c5a

Please sign in to comment.