tox
tox (green on the backends part)
----
journal wise though, tox won't be happy. We need D3241 to land and be tagged first [1] (done).
Apparently, it's not enough though... investigating...
[1] original issue prior to D3241 tagged:
```
.tox/py3/lib/python3.7/site-packages/swh/journal/writer/kafka.py:212: in _write_addition
key = object_key(object_type, object_)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
object_type = 'origin_visit_status', object_ = OriginVisitStatus(origin='https://somewhere.org/den/fox', visit=1, date=datetime.datetime(2013, 5, 7, 4, 20, 39, 369271, tzinfo=tzutc()), status='ongoing', snapshot=None, metadata=None)
def object_key(object_type: str, object_) -> KeyType:
if object_type in ("revision", "release", "directory", "snapshot"):
return object_.id
elif object_type == "content":
return object_.sha1 # TODO: use a dict of hashes
elif object_type == "skipped_content":
return {hash: getattr(object_, hash) for hash in DEFAULT_ALGORITHMS}
elif object_type == "origin":
return {"url": object_.url}
elif object_type == "origin_visit":
return {
"origin": object_.origin,
"date": str(object_.date),
}
else:
> raise ValueError("Unknown object type: %s." % object_type)
E ValueError: Unknown object type: origin_visit_status.
.tox/py3/lib/python3.7/site-packages/swh/journal/serializers.py:66: ValueError
```