summaryrefslogtreecommitdiffstats
path: root/rtemsspec/tests
diff options
context:
space:
mode:
Diffstat (limited to 'rtemsspec/tests')
-rw-r--r--rtemsspec/tests/spec-sphinx/z.yml4
-rw-r--r--rtemsspec/tests/test_content_sphinx.py3
2 files changed, 6 insertions, 1 deletions
diff --git a/rtemsspec/tests/spec-sphinx/z.yml b/rtemsspec/tests/spec-sphinx/z.yml
new file mode 100644
index 00000000..d8fcbe80
--- /dev/null
+++ b/rtemsspec/tests/spec-sphinx/z.yml
@@ -0,0 +1,4 @@
+term: z
+glossary-type: term
+links: []
+type: glossary
diff --git a/rtemsspec/tests/test_content_sphinx.py b/rtemsspec/tests/test_content_sphinx.py
index 85d1e151..20fa258a 100644
--- a/rtemsspec/tests/test_content_sphinx.py
+++ b/rtemsspec/tests/test_content_sphinx.py
@@ -296,7 +296,8 @@ def test_substitute(tmpdir):
with pytest.raises(ValueError, match=match):
mapper.substitute("${x:/y}")
assert mapper.substitute("${x:/term}") == ":term:`y`"
- assert mapper.substitute("${x:/plural}") == ":term:`ys <y>`"
+ assert mapper.substitute("${x:/plural}") == ":term:`ies <y>`"
+ assert mapper.substitute("${z:/plural}") == ":term:`zs <z>`"
mapper.add_get_value("other:/name", lambda ctx: ctx.value[ctx.key])
assert mapper.substitute("${y:/name}") == "foobar"
assert mapper.substitute("${a:/name}") == ":c:data:`a`"