Skip to content

Commit

Permalink
Fix test for source role.
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Aug 26, 2020
1 parent bc40a73 commit 65a914d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/test_source.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
# 3rd party
import pytest
from apeye.url import RequestsURL
from bs4 import BeautifulSoup
from docutils.nodes import paragraph, reference, system_message
from docutils.parsers.rst.directives import path
from domdf_python_tools.paths import PathPlus
from docutils.nodes import inline, reference, system_message
from sphinx import addnodes

# this package
Expand Down Expand Up @@ -51,7 +47,7 @@ def test_source_role_sphinx():
assert isinstance(nodes[0], addnodes.only)
assert nodes[0].attributes["expr"] == "html"
assert isinstance(nodes[0].children[0], addnodes.pending_xref)
assert isinstance(nodes[0].children[0].children[0], paragraph)
assert isinstance(nodes[0].children[0].children[0], inline)
assert nodes[0].children[0].attributes["reftype"] == "viewcode"
assert nodes[0].children[0].attributes["refdomain"] == "std"
assert nodes[0].children[0].attributes["reftarget"] == "_modules/Lib/typing"
Expand Down

0 comments on commit 65a914d

Please sign in to comment.