Changeset View
Changeset View
Standalone View
Standalone View
swh/lister/tests/test_cli.py
# Copyright (C) 2019-2020 The Software Heritage developers | # Copyright (C) 2019-2020 The Software Heritage developers | ||||
# See the AUTHORS file at the top-level directory of this distribution | # See the AUTHORS file at the top-level directory of this distribution | ||||
# License: GNU General Public License version 3, or any later version | # License: GNU General Public License version 3, or any later version | ||||
# See top-level LICENSE file for more information | # See top-level LICENSE file for more information | ||||
import pytest | import pytest | ||||
from swh.lister.cli import SUPPORTED_LISTERS, get_lister | from swh.lister.cli import SUPPORTED_LISTERS, get_lister | ||||
from .test_utils import init_db | from .test_utils import init_db | ||||
lister_args = { | lister_args = { | ||||
"cgit": {"url": "https://git.eclipse.org/c/",}, | |||||
"phabricator": { | "phabricator": { | ||||
"instance": "softwareheritage", | "instance": "softwareheritage", | ||||
"url": "https://forge.softwareheritage.org/api/diffusion.repository.search", | "url": "https://forge.softwareheritage.org/api/diffusion.repository.search", | ||||
"api_token": "bogus", | "api_token": "bogus", | ||||
}, | }, | ||||
"gitea": {"url": "https://try.gitea.io/api/v1/",}, | "gitea": {"url": "https://try.gitea.io/api/v1/",}, | ||||
} | } | ||||
Show All 22 Lines |