diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-07-01 14:54:20 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-07-03 10:22:46 +0200 |
commit | e382283c183499a03599e4b075030d41eba1338b (patch) | |
tree | 113e2d9aff653e0417eb2d3358524113a7af66f2 /rtemsqual/tests/test_content_sphinx.py | |
parent | items: Add ItemGetValueContext (diff) | |
download | rtems-central-e382283c183499a03599e4b075030d41eba1338b.tar.bz2 |
items: Move item get value customization
Diffstat (limited to 'rtemsqual/tests/test_content_sphinx.py')
-rw-r--r-- | rtemsqual/tests/test_content_sphinx.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rtemsqual/tests/test_content_sphinx.py b/rtemsqual/tests/test_content_sphinx.py index f6c7f057..50552410 100644 --- a/rtemsqual/tests/test_content_sphinx.py +++ b/rtemsqual/tests/test_content_sphinx.py @@ -270,5 +270,5 @@ def test_substitute(tmpdir): mapper.substitute("${x:/y}") assert mapper.substitute("${x:/term}") == ":term:`y`" assert mapper.substitute("${x:/plural}") == ":term:`ys <y>`" - mapper.add_get_reference("other:/name", lambda x, y: x[y]) + mapper.add_get_value("other:/name", lambda ctx: ctx.value[ctx.key]) assert mapper.substitute("${y:/name}") == "foobar" |