Changeset View
Changeset View
Standalone View
Standalone View
swh/lister/tests/test_cli.py
Show All 33 Lines | lister_args = { | ||||
"gogs": { | "gogs": { | ||||
"url": "https://try.gogs.io/", | "url": "https://try.gogs.io/", | ||||
"api_token": "secret", | "api_token": "secret", | ||||
}, | }, | ||||
"nixguix": { | "nixguix": { | ||||
"url": "https://guix.gnu.org/sources.json", | "url": "https://guix.gnu.org/sources.json", | ||||
"origin_upstream": "https://git.savannah.gnu.org/cgit/guix.git/", | "origin_upstream": "https://git.savannah.gnu.org/cgit/guix.git/", | ||||
}, | }, | ||||
"fedora": { | |||||
"url": "https://archives.fedoraproject.org/pub/archive/fedora/linux/releases//", | |||||
}, | |||||
} | } | ||||
def test_get_lister_wrong_input(): | def test_get_lister_wrong_input(): | ||||
"""Unsupported lister should raise""" | """Unsupported lister should raise""" | ||||
with pytest.raises(ValueError) as e: | with pytest.raises(ValueError) as e: | ||||
get_lister("unknown", "db-url") | get_lister("unknown", "db-url") | ||||
Show All 14 Lines |