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:
parent
5d096d511c
commit
5ab9d67d67
9 changed files with 46 additions and 38 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue