Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.indexer.metadata_dictionary.npm::swh.indexer.metadata_dictionary.npm.NpmMapping.normalize_description
Failed

TEST RESULT

Run At
Jun 16 2022, 10:23 AM
Details
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