025
026 Splits ``field_name`` on ``.``, and use it as path in the nested ``entry``
027 dictionary. If a value does not exist, returns None.
028
029 >>> get_field_value({"foo": 1, "bar": {"baz": 2, "qux": [3, 4]}}}, "foo")
UNEXPECTED EXCEPTION: SyntaxError('invalid syntax', ('<doctest swh.lister.cpan.lister.get_field_value[0]>', 1, 61, 'get_field_value({"foo": 1, "bar": {"baz": 2, "qux": [3, 4]}}}, "foo")\n'))
Traceback (most recent call last):
File "/usr/lib/python3.7/doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest swh.lister.cpan.lister.get_field_value[0]>", line 1
get_field_value({"foo": 1, "bar": {"baz": 2, "qux": [3, 4]}}}, "foo")
^
SyntaxError: invalid syntax
/var/lib/jenkins/workspace/DLS/tests-on-diff@2/.tox/py3/lib/python3.7/site-packages/swh/lister/cpan/lister.py:29: UnexpectedException
TEST RESULT
TEST RESULT
- Run At
- Oct 11 2022, 2:23 PM