summaryrefslogtreecommitdiffstats
path: root/rtemsqual/tests/test_content_sphinx.py
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-05-19 10:43:10 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-05-28 10:38:23 +0200
commit2d31c5b09e32aae485ca242def22d3d8c229a9df (patch)
treec3b9262c2c2d0b01045845a43223b3b41140d9f6 /rtemsqual/tests/test_content_sphinx.py
parentcontent: Add SphinxContent.section() (diff)
downloadrtems-central-2d31c5b09e32aae485ca242def22d3d8c229a9df.tar.bz2
content: Add SphinxContext.get_reference()
Diffstat (limited to 'rtemsqual/tests/test_content_sphinx.py')
-rw-r--r--rtemsqual/tests/test_content_sphinx.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/rtemsqual/tests/test_content_sphinx.py b/rtemsqual/tests/test_content_sphinx.py
index c4c86317..94d34fa4 100644
--- a/rtemsqual/tests/test_content_sphinx.py
+++ b/rtemsqual/tests/test_content_sphinx.py
@@ -96,6 +96,12 @@ yz w
"""
+def test_get_reference():
+ content = SphinxContent()
+ assert content.get_reference("a") == ":ref:`a`"
+ assert content.get_reference("a", "b") == ":ref:`b <a>`"
+
+
def test_section():
content = SphinxContent()
with content.section("ab cd") as label: