tests: Fix errors after swh-scheduler API update

The PaginatedListedOriginList model has been updated in
rDSCHb93aa5be2c2d5dc2130e1027698f3e1255052d8d and the origins
field has been renamed to results.
This commit is contained in:
Antoine Lambert 2021-01-25 17:09:27 +01:00
parent b6a69b2ed9
commit ea8ecee541
9 changed files with 22 additions and 22 deletions

View file

@ -51,7 +51,7 @@ def test_lister_cgit_run(requests_mock_datadir, swh_scheduler):
# test page parsing
scheduler_origins = swh_scheduler.get_listed_origins(
lister_cgit.lister_obj.id
).origins
).results
assert len(scheduler_origins) == expected_nb_origins
# test listed repositories