pypi.tests: simplify requests_mock invocation
This commit is contained in:
parent
62c825b8cb
commit
6d22007946
1 changed files with 1 additions and 3 deletions
|
@ -37,9 +37,7 @@ def test_pypi_list(swh_scheduler, requests_mock, mocker, pypi_packages_testdata)
|
|||
|
||||
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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue