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)