146 >>> NpmMapping().normalize_description(
147 ... "\ufffd\ufffd\x00#\x00 \x00f\x00o\x00o\x00 \x00b\x00a\x00r\x00\r\x00 "
148 ... )
149 'foo bar'
150 >>> NpmMapping().normalize_description(
151 ... # invalid UTF-16 and meaningless UTF-8:
152 ... "\ufffd\ufffd\x00#\x00\x00\x00 \x00\x00\x00\x00f\x00\x00\x00\x00"
153 ... ) is None
154 True
155 >>> NpmMapping().normalize_description(None)
Expected:
None
Got nothing
/var/lib/jenkins/workspace/DCIDX/tests-on-diff/.tox/py3/lib/python3.7/site-packages/swh/indexer/metadata_dictionary/npm.py:155: DocTestFailure
TEST RESULT
TEST RESULT
- Run At
- Jun 16 2022, 10:23 AM