gitea.tasks: Fix parameter name from 'sort' to 'order'
This fixes [1] [1] https://sentry.softwareheritage.org/share/issue/b0119b56f24347bcb58ac28c68685c62/
This commit is contained in:
parent
7d44bc2e75
commit
66a61f3dd2
2 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ NBPAGES = 10
|
|||
@shared_task(name=__name__ + ".IncrementalGiteaLister")
|
||||
def list_gitea_incremental(**lister_args):
|
||||
"""Incremental update of a Gitea instance"""
|
||||
lister_args["sort"] = "desc"
|
||||
lister_args["order"] = "desc"
|
||||
lister = GiteaLister(**lister_args)
|
||||
total_pages = lister.get_pages_information()[1]
|
||||
# stopping as soon as existing origins for that instance are detected
|
||||
|
|
|
@ -31,7 +31,7 @@ def test_incremental(lister, swh_scheduler_celery_app, swh_scheduler_celery_work
|
|||
res.wait()
|
||||
assert res.successful()
|
||||
|
||||
lister.assert_called_once_with(sort="desc")
|
||||
lister.assert_called_once_with(order="desc")
|
||||
lister.db_last_index.assert_not_called()
|
||||
lister.get_pages_information.assert_called_once_with()
|
||||
lister.run.assert_called_once_with(min_bound=1, max_bound=10, check_existence=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue