Changeset View
Changeset View
Standalone View
Standalone View
swh/scheduler/tests/test_cli.py
Show First 20 Lines • Show All 560 Lines • ▼ Show 20 Lines | |||||
'''.lstrip() | '''.lstrip() | ||||
assert result.exit_code == 0, result.output | assert result.exit_code == 0, result.output | ||||
assert re.fullmatch(expected, result.output, re.MULTILINE), result.output | assert re.fullmatch(expected, result.output, re.MULTILINE), result.output | ||||
def _fill_storage_with_origins(storage, nb_origins): | def _fill_storage_with_origins(storage, nb_origins): | ||||
origins = [ | origins = [ | ||||
{ | { | ||||
'type': 'type{}'.format(i), | |||||
'url': 'http://example.com/{}'.format(i), | 'url': 'http://example.com/{}'.format(i), | ||||
} | } | ||||
for i in range(nb_origins) | for i in range(nb_origins) | ||||
] | ] | ||||
storage.origin_add(origins) | storage.origin_add(origins) | ||||
return origins | return origins | ||||
▲ Show 20 Lines • Show All 113 Lines • Show Last 20 Lines |