Skip to content
Snippets Groups Projects
Verified Commit 66a61f3d authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

gitea.tasks: Fix parameter name from 'sort' to 'order'

parent 7d44bc2e
No related branches found
No related tags found
1 merge request!155gitea.tasks: Fix parameter name from 'sort' to 'order'
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment