From 7c247c8a4a285dacb20a9d9da087fced8ece8501 Mon Sep 17 00:00:00 2001 From: "Antoine R. Dumont (@ardumont)" Date: Thu, 17 Oct 2019 18:01:22 +0200 Subject: [PATCH] debian/lister: Use url parameter name instead of origin within the scheduled task. Related D2135 --- swh/lister/debian/models.py | 2 +- swh/lister/debian/tests/test_lister.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/swh/lister/debian/models.py b/swh/lister/debian/models.py index 7ddb7a2..4dfc5ad 100644 --- a/swh/lister/debian/models.py +++ b/swh/lister/debian/models.py @@ -196,7 +196,7 @@ class DistributionSnapshot(SQLBase): 'arguments': { 'args': [], 'kwargs': { - 'origin': origin, + 'url': origin, 'date': self.date.isoformat(), 'packages': package_versions, }, diff --git a/swh/lister/debian/tests/test_lister.py b/swh/lister/debian/tests/test_lister.py index 450d84d..0b279c5 100644 --- a/swh/lister/debian/tests/test_lister.py +++ b/swh/lister/debian/tests/test_lister.py @@ -27,7 +27,7 @@ def test_lister_debian(lister_debian, datadir, requests_mock_datadir): # kwargs kwargs = row['arguments']['kwargs'] - assert set(kwargs.keys()) == {'origin', 'date', 'packages'} + assert set(kwargs.keys()) == {'url', 'date', 'packages'} logger.debug('kwargs: %s', kwargs)