Changeset View
Changeset View
Standalone View
Standalone View
swh/scheduler/tests/common.py
Show First 20 Lines • Show All 87 Lines • ▼ Show 20 Lines | for i in range(num + num_priority): | ||||
template, | template, | ||||
max_timestamp - datetime.timedelta(microseconds=i), | max_timestamp - datetime.timedelta(microseconds=i), | ||||
priority, | priority, | ||||
"argument-%03d" % i, | "argument-%03d" % i, | ||||
**{"kwarg%03d" % i: "bogus-kwarg"}, | **{"kwarg%03d" % i: "bogus-kwarg"}, | ||||
) | ) | ||||
) | ) | ||||
return tasks | return tasks | ||||
LISTERS = ( | |||||
{"name": "github"}, | |||||
{ | |||||
"name": "gitlab", | |||||
"arguments": {"url": "https://gitlab.com/api/v4", "instance": "gitlab"}, | |||||
}, | |||||
{ | |||||
"name": "gitlab", | |||||
"arguments": { | |||||
"url": "https://gitlab.freedesktop.org/api/v4", | |||||
"instance": "freedesktop", | |||||
}, | |||||
}, | |||||
{"name": "npm"}, | |||||
{"name": "pypi"}, | |||||
) |