lister.phabricator.tests: Add task-type related to lister

This commit is contained in:
Antoine R. Dumont (@ardumont) 2020-10-29 18:38:53 +01:00
parent 243f3573bc
commit 884585034b
No known key found for this signature in database
GPG key ID: 52E2E9840D10C3B8

View file

@ -18,5 +18,13 @@ def lister_phabricator(swh_lister):
"cache_responses": False,
"credentials": {"phabricator": {swh_lister.instance: [{"password": "foo"}]}},
}
swh_lister.scheduler.create_task_type(
{
"type": "load-git",
"description": "Load git repository",
"backend_name": "swh.loader.git.tasks.UpdateGitRepository",
"default_interval": "1 day",
}
)
return swh_lister