diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-06-16 15:51:58 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-07-03 10:22:45 +0200 |
commit | f3490d2461aa665e5b16f234a4b21f1bbd6d0c2d (patch) | |
tree | fdf5e67f6bee4a8f10c1a9cb735bf965074805b4 /rtemsqual/tests/test_content_sphinx.py | |
parent | Doxyfile: Document static functions (diff) | |
download | rtems-central-f3490d2461aa665e5b16f234a4b21f1bbd6d0c2d.tar.bz2 |
sphinxcontent: Add SphinxContent.definition_item()
Diffstat (limited to 'rtemsqual/tests/test_content_sphinx.py')
-rw-r--r-- | rtemsqual/tests/test_content_sphinx.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/rtemsqual/tests/test_content_sphinx.py b/rtemsqual/tests/test_content_sphinx.py index f231f5ed..bb8ba6cc 100644 --- a/rtemsqual/tests/test_content_sphinx.py +++ b/rtemsqual/tests/test_content_sphinx.py @@ -219,6 +219,16 @@ def test_add_definition_item(): """ +def test_definition_item(): + content = SphinxContent() + with content.definition_item("x"): + content.add(["y", "z"]) + assert str(content) == """x + y + z +""" + + def test_license(): content = SphinxContent() with pytest.raises(ValueError): |