phabricator: refactor PhabricatorLister's constructor

- use the 'standard' api_baseurl as init argument,
- make it optional, with default to forge.softwareheritage.org,
- use origin_url as id.
This commit is contained in:
David Douard 2019-08-30 17:26:47 +02:00
parent befe9a6d57
commit 87cec2f5c3
3 changed files with 10 additions and 11 deletions

View file

@ -60,7 +60,9 @@ def test_get_lister_override():
listers = {
'gitlab': ('api_baseurl', 'https://gitlab.uni/api/v4/'),
'phabricator': ('forge_url', 'https://somewhere.org'),
'phabricator': (
'api_baseurl',
'https://somewhere.org/api/diffusion.repository.search'),
}
# check the override ends up defined in the lister