exporter = <function exporter.<locals>.wrapped at 0x7f59d61fa488>
def test_export_revision(exporter):
obj_type = "revision"
> output = exporter({obj_type: TEST_OBJECTS[obj_type]})
.tox/py3/lib/python3.7/site-packages/swh/dataset/test/test_orc.py:99:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.7/site-packages/swh/dataset/test/test_orc.py:27: in wrapped
exporter.process_object(object_type, obj.to_dict())
.tox/py3/lib/python3.7/site-packages/swh/dataset/exporter.py:75: in process_object
getattr(self, method_name)(obj)
.tox/py3/lib/python3.7/site-packages/swh/dataset/exporters/orc.py:157: in process_revision
swh_date_to_offset(revision["date"]),
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
obj = {'offset_bytes': b'+0200', 'timestamp': {'microseconds': 0, 'seconds': 1234567891}}
def swh_date_to_offset(obj):
if obj is None:
return None
> return obj["offset"]
E KeyError: 'offset'
.tox/py3/lib/python3.7/site-packages/swh/dataset/exporters/orc.py:63: KeyError
TEST RESULT
TEST RESULT
- Run At
- Mar 16 2022, 7:54 PM