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:
parent
befe9a6d57
commit
87cec2f5c3
3 changed files with 10 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue