Changeset View
Changeset View
Standalone View
Standalone View
swh/lister/tests/test_cli.py
Show All 25 Lines | "gitlab": { | ||||
"url": "https://gitlab.ow2.org/api/v4", | "url": "https://gitlab.ow2.org/api/v4", | ||||
"instance": "ow2", | "instance": "ow2", | ||||
}, | }, | ||||
"opam": {"url": "https://opam.ocaml.org", "instance": "opam"}, | "opam": {"url": "https://opam.ocaml.org", "instance": "opam"}, | ||||
"maven": { | "maven": { | ||||
"url": "https://repo1.maven.org/maven2/", | "url": "https://repo1.maven.org/maven2/", | ||||
"index_url": "http://indexes/export.fld", | "index_url": "http://indexes/export.fld", | ||||
}, | }, | ||||
"gogs": { | |||||
"url": "https://try.gogs.io/", | |||||
"api_token": "secret", | |||||
}, | |||||
} | } | ||||
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 |