core: Align listers' task output (hg/git tasks) with expected format

Related to T2134
Related to D2409
Related to D2410
This commit is contained in:
Antoine R. Dumont (@ardumont) 2019-12-06 17:35:24 +01:00
parent 5d096d511c
commit 5ab9d67d67
No known key found for this signature in database
GPG key ID: 52E2E9840D10C3B8
9 changed files with 46 additions and 38 deletions

View file

@ -57,14 +57,14 @@ def test_lister_run(requests_mock_datadir, swh_listers):
assert row['type'] == 'load-git'
# arguments check
args = row['arguments']['args']
assert len(args) == 1
url = args[0]
assert url.startswith('https://git.tizen')
assert len(args) == 0
# kwargs
kwargs = row['arguments']['kwargs']
assert kwargs == {}
assert len(kwargs) == 1
url = kwargs['url']
assert url.startswith('https://git.tizen')
assert row['policy'] == 'recurring'
assert row['priority'] is None