Skip to content

Commit

Permalink
intersphinx: Add testcase for case insensitive term match (refs: #9299)
Browse files Browse the repository at this point in the history
  • Loading branch information
tk0miya committed Jul 11, 2021
1 parent 676983e commit e6d3adf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_ext_intersphinx.py
Expand Up @@ -196,6 +196,16 @@ def test_missing_reference_pydomain(tempdir, app, status, warning):
rn = missing_reference(app, app.env, node, contnode)
assert rn.astext() == 'Foo.bar'

# term reference (normal)
node, contnode = fake_node('std', 'term', 'a term', 'a term')
rn = missing_reference(app, app.env, node, contnode)
assert rn.astext() == 'a term'

# term reference (case insensitive)
node, contnode = fake_node('std', 'term', 'A TERM', 'A TERM')
rn = missing_reference(app, app.env, node, contnode)
assert rn.astext() == 'A TERM'


def test_missing_reference_stddomain(tempdir, app, status, warning):
inv_file = tempdir / 'inventory'
Expand Down

0 comments on commit e6d3adf

Please sign in to comment.