test_cli: Exclude launchpad lister from the check

This should fix the build [1]

[1] https://jenkins.softwareheritage.org/view/Debian%20packages/job/debian/job/packages/job/DLS/job/gbp-buildpackage/77/console
This commit is contained in:
Antoine R. Dumont (@ardumont) 2020-09-01 15:55:24 +02:00
parent 250160ad75
commit e99d3464e4
No known key found for this signature in database
GPG key ID: 52E2E9840D10C3B8

View file

@ -25,7 +25,9 @@ def test_get_lister(mock_get_scheduler):
"""
db_url = init_db().url()
for lister_name in SUPPORTED_LISTERS:
# launchpad lister need particular setup so exclude from the checks
listers_to_check = set(SUPPORTED_LISTERS) | {"launchpad"}
for lister_name in listers_to_check:
lst = get_lister(lister_name, db_url)
assert isinstance(lst, ListerBase)