swh_scheduler = <swh.scheduler.backend.SchedulerBackend object at 0x7f80a1ac62e8>
def test_journal_client_origin_visit_status_from_journal(swh_scheduler):
process_fn = functools.partial(process_journal_objects, scheduler=swh_scheduler,)
visit_statuses = [
OriginVisitStatus(
origin="foo",
visit=1,
status="full",
date=utcnow(),
type="git",
> snapshot=hash_to_bytes("d81cc0710eb6cf9efd5b920a8453e1e07157b6cd"),
),
OriginVisitStatus(
origin="zrb",
visit=2,
status="created", # ignored
date=utcnow(),
type="hg",
snapshot=None,
),
OriginVisitStatus(
origin="bar",
visit=1,
status="partial",
date=utcnow(),
type="svn",
snapshot=None,
),
OriginVisitStatus(
origin="zrb",
visit=2,
status="ongoing", # ignore
date=utcnow(),
type="hg",
snapshot=None,
),
]
E TypeError: __init__() got an unexpected keyword argument 'type'
.tox/py3/lib/python3.7/site-packages/swh/scheduler/tests/test_journal_client.py:32: TypeError
TEST RESULT
TEST RESULT
- Run At
- Jan 13 2021, 1:10 PM