fix(hex): Update Hex Lister task name

This commit is contained in:
KShivendu 2023-02-05 15:56:10 +05:30 committed by Kumar Shivendu
parent 9095bbec00
commit 6d228a8147
2 changed files with 3 additions and 3 deletions

View file

@ -13,7 +13,7 @@ from .lister import HexLister
def list_hex_full(
instance: Optional[str] = None,
) -> Dict[str, int]:
"""Full listing of Hex.pm"""
"""Lister task for Hex.pm"""
lister = HexLister.from_configfile(instance=instance)
return lister.run().dict()

View file

@ -23,7 +23,7 @@ def test_full_listing(lister, swh_scheduler_celery_app, swh_scheduler_celery_wor
kwargs = dict()
res = swh_scheduler_celery_app.send_task(
"swh.lister.hex.tasks.FullHexRelister",
"swh.lister.hex.tasks.HexListerTask",
kwargs=kwargs,
)
assert res
@ -45,7 +45,7 @@ def test_full_listing_params(
kwargs = dict(instance="hex.pm")
res = swh_scheduler_celery_app.send_task(
"swh.lister.hex.tasks.FullHexRelister",
"swh.lister.hex.tasks.HexListerTask",
kwargs=kwargs,
)
assert res