Changeset View
Changeset View
Standalone View
Standalone View
swh/web/tests/common/test_origin_save.py
Show All 34 Lines | else: | ||||
swh_web_config.update({'es_workers_index_url': ''}) | swh_web_config.update({'es_workers_index_url': ''}) | ||||
sor_id = 4473 | sor_id = 4473 | ||||
SaveOriginRequest.objects.create( | SaveOriginRequest.objects.create( | ||||
id=sor_id, | id=sor_id, | ||||
request_date=datetime(2019, 8, 30, 23, 7, 3, 474294, | request_date=datetime(2019, 8, 30, 23, 7, 3, 474294, | ||||
tzinfo=timezone.utc), | tzinfo=timezone.utc), | ||||
origin_type='git', | visit_type='git', | ||||
origin_url='https://gitlab.com/inkscape/inkscape', | origin_url='https://gitlab.com/inkscape/inkscape', | ||||
status='accepted', | status='accepted', | ||||
loading_task_id=203525448, | loading_task_id=203525448, | ||||
visit_date=datetime(2019, 8, 30, 23, 18, 11, 54341, | visit_date=datetime(2019, 8, 30, 23, 18, 11, 54341, | ||||
tzinfo=timezone.utc) | tzinfo=timezone.utc) | ||||
) | ) | ||||
mock_scheduler = mocker.patch('swh.web.common.origin_save.scheduler') | mock_scheduler = mocker.patch('swh.web.common.origin_save.scheduler') | ||||
▲ Show 20 Lines • Show All 76 Lines • Show Last 20 Lines |