Page MenuHomeSoftware Heritage
Paste P171

test_revision_metadata_indexer failure
ActivePublic

Authored by ardumont on Jul 28 2017, 1:02 PM.
======================================================================
FAIL: test_revision_metadata_indexer (test_metadata.Metadata)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/tony/work/inria/repo/swh/swh-environment/swh-indexer/swh/indexer/tests/test_metadata.py", line 295, in test_revision_metadata_indexer
self.assertEqual(expected_results, results)
AssertionError: Lists differ: [{'tr[15 chars]ta': {'operatingSystem': None, 'license': ['AG[739 chars]: 7}] != [{'tr[15 chars]ta': None, 'id': b'8dbb6aeb036e7fd80664eb8bfd1[42 chars]: 7}]
First differing element 0:
{'tra[14 chars]ta': {'operatingSystem': None, 'license': ['AG[738 chars]': 7}
{'tra[14 chars]ta': None, 'id': b'8dbb6aeb036e7fd80664eb8bfd1[41 chars]': 7}
[{'id': b'8dbb6aeb036e7fd80664eb8bfd1507881af1ba9f',
'indexer_configuration_id': 7,
+ 'translated_metadata': None}]
- 'translated_metadata': {'author': ['Andrew Nesbitt'],
- 'codeRepository': [{'type': 'git',
- 'url': 'git+https://github.com/librariesio/yarn-parser.git'}],
- 'description': ['Tiny web service for parsing '
- 'yarn.lock files'],
- 'developmentStatus': None,
- 'email': None,
- 'identifier': None,
- 'issueTracker': [{'url': 'https://github.com/librariesio/yarn-parser/issues'}],
- 'keywords': [['yarn',
- 'parse',
- 'lock',
- 'dependencies']],
- 'license': ['AGPL-3.0'],
- 'maintainer': None,
- 'name': ['yarn-parser'],
- 'operatingSystem': None,
- 'relatedLink': None,
- 'softwareRequirements': [{'body-parser': '^1.15.2',
- 'express': '^4.14.0',
- 'yarn': '^0.21.0'}],
- 'type': None,
- 'url': ['https://github.com/librariesio/yarn-parser#readme'],
- 'version': ['1.0.0']}}]
-------------------- >> begin captured logging << --------------------
swh.indexer: ERROR: Problem when indexing rev
Traceback (most recent call last):
File "/home/tony/work/inria/repo/swh/swh-environment/swh-indexer/swh/indexer/metadata.py", line 175, in index
detected_files)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-indexer/swh/indexer/metadata.py", line 228, in translate_revision_metadata
c_metadata_indexer = ContentMetadataIndexer(tool, config)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-indexer/swh/indexer/metadata.py", line 30, in __init__
super().__init__()
File "/home/tony/work/inria/repo/swh/swh-environment/swh-indexer/swh/indexer/indexer.py", line 176, in __init__
self.prepare()
File "/home/tony/work/inria/repo/swh/swh-environment/swh-indexer/swh/indexer/metadata.py", line 33, in prepare
super().prepare()
File "/home/tony/work/inria/repo/swh/swh-environment/swh-indexer/swh/indexer/indexer.py", line 189, in prepare
self.storage = get_storage(storage['cls'], storage['args'])
File "/home/tony/work/inria/repo/swh/swh-environment/swh-storage/swh/storage/__init__.py", line 36, in get_storage
return Storage(**args)
TypeError: __init__() got an unexpected keyword argument 'slicing'
--------------------- >> end captured logging << ---------------------
----------------------------------------------------------------------
Ran 12 tests in 0.756s
FAILED (failures=1)
../Makefile.python:17: recipe for target 'test' failed
make: *** [test] Error 1