Changeset View
Changeset View
Standalone View
Standalone View
swh/lister/phabricator/tests/test_tasks.py
Show All 18 Lines | def test_incremental(lister, swh_app, celery_session_worker): | ||||
res = swh_app.send_task( | res = swh_app.send_task( | ||||
'swh.lister.phabricator.tasks.IncrementalPhabricatorLister') | 'swh.lister.phabricator.tasks.IncrementalPhabricatorLister') | ||||
assert res | assert res | ||||
res.wait() | res.wait() | ||||
assert res.successful() | assert res.successful() | ||||
lister.assert_called_once_with( | lister.assert_called_once_with( | ||||
api_token='', forge_url='https://forge.softwareheritage.org') | api_token='', forge_url='https://forge.softwareheritage.org', | ||||
instance='swh') | |||||
lister.db_last_index.assert_called_once_with() | lister.db_last_index.assert_called_once_with() | ||||
lister.run.assert_called_once_with(min_bound=42) | lister.run.assert_called_once_with(min_bound=42) |