diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2023-11-21 11:13:15 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2023-11-21 11:15:24 +0100 |
commit | 07aaa327e54123c2c9852a650fd9db598c3dc11a (patch) | |
tree | d28544cc8d957878548aed371029a5661358a337 /rtemsspec/tests/test_content_sphinx.py | |
parent | items: Add ItemMapper.copyrights_by_license (diff) | |
download | rtems-central-07aaa327e54123c2c9852a650fd9db598c3dc11a.tar.bz2 |
sphinxcontent: Add SphinxContent.label_scope()
Diffstat (limited to 'rtemsspec/tests/test_content_sphinx.py')
-rw-r--r-- | rtemsspec/tests/test_content_sphinx.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/rtemsspec/tests/test_content_sphinx.py b/rtemsspec/tests/test_content_sphinx.py index 00be7a5f..e6bbd4bf 100644 --- a/rtemsspec/tests/test_content_sphinx.py +++ b/rtemsspec/tests/test_content_sphinx.py @@ -40,6 +40,18 @@ def test_add_label(): """ +def test_label_scope(): + content = SphinxContent() + with content.label_scope("x"): + with content.section("y"): + pass + assert str(content) == """.. _xY: + +y += +""" + + def test_directive(): content = SphinxContent() with content.directive("x"): |