diff --git a/swh/lister/gitlab/tests/test_tasks.py b/swh/lister/gitlab/tests/test_tasks.py --- a/swh/lister/gitlab/tests/test_tasks.py +++ b/swh/lister/gitlab/tests/test_tasks.py @@ -8,7 +8,7 @@ from celery.result import GroupResult -from swh.lister.gitea.tasks import NBPAGES +from swh.lister.gitlab.tasks import NBPAGES from swh.lister.utils import split_range diff --git a/swh/lister/pypi/tests/test_lister.py b/swh/lister/pypi/tests/test_lister.py --- a/swh/lister/pypi/tests/test_lister.py +++ b/swh/lister/pypi/tests/test_lister.py @@ -37,9 +37,7 @@ t_content, t_names, t_urls = pypi_packages_testdata - requests_mock.get( - PyPILister.PACKAGE_LIST_URL, [{"content": t_content, "status_code": 200},], - ) + requests_mock.get(PyPILister.PACKAGE_LIST_URL, content=t_content) lister = PyPILister(scheduler=swh_scheduler)