diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-05-19 10:43:10 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-05-28 10:38:23 +0200 |
commit | 2d31c5b09e32aae485ca242def22d3d8c229a9df (patch) | |
tree | c3b9262c2c2d0b01045845a43223b3b41140d9f6 /rtemsqual/tests/test_content_sphinx.py | |
parent | content: Add SphinxContent.section() (diff) | |
download | rtems-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.py | 6 |
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: |