Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.storage.tests.test_converters::test_db_to_revision
Failed

TEST RESULT

Run At
Aug 12 2020, 11:01 AM
Details
ValueError: 'rev' is not a valid RevisionType During handling of the above exception, another exception occurred: def test_db_to_revision(): # when actual_revision = converters.db_to_revision( { "id": "revision-id", "date": None, "date_offset": None, "date_neg_utc_offset": None, "committer_date": None, "committer_date_offset": None, "committer_date_neg_utc_offset": None, "type": "rev", "directory": b"dir-sha1", "message": b"commit message", "author_fullname": b"auth-fullname", "author_name": b"auth-name", "author_email": b"auth-email", "committer_fullname": b"comm-fullname", "committer_name": b"comm-name", "committer_email": b"comm-email", "metadata": {}, "synthetic": False, "extra_headers": (), > "parents": [123, 456], } ) .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_converters.py:89: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/storage/converters.py:231: in db_to_revision type=RevisionType(db_revision["type"]), /usr/lib/python3.7/enum.py:310: in __call__ return cls.__new__(cls, value) /usr/lib/python3.7/enum.py:564: in __new__ raise exc /usr/lib/python3.7/enum.py:548: in __new__ result = cls._missing_(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = <enum 'RevisionType'>, value = 'rev' @classmethod def _missing_(cls, value): > raise ValueError("%r is not a valid %s" % (value, cls.__name__)) E ValueError: 'rev' is not a valid RevisionType /usr/lib/python3.7/enum.py:577: ValueError