test_cli: Drop launchpad lister from the test_get_lister

Drop launchpad lister from the lister to check, its test setup is more involved than the
other listers. As its setup is not done in that test, it's actually connecting
anonymously to the launchpad server. So remove such lister from the test.

This should also fix the debian build which refuses such access [1]

[1] https://jenkins.softwareheritage.org/job/debian/job/packages/job/DLS/job/gbp-buildpackage/97/console
This commit is contained in:
Antoine R. Dumont (@ardumont) 2021-01-27 17:15:58 +01:00
parent b11b4d1001
commit cbd2cce339
No known key found for this signature in database
GPG key ID: 52E2E9840D10C3B8

View file

@ -34,7 +34,10 @@ def test_get_lister(swh_scheduler_config):
"""
db_url = init_db().url()
for lister_name in SUPPORTED_LISTERS:
# Drop launchpad lister from the lister to check, its test setup is more involved
# than the other listers and it's not currently done here
supported_listers = set(SUPPORTED_LISTERS) - {"launchpad"}
for lister_name in supported_listers:
lst = get_lister(
lister_name,
db_url,