Changeset View
Changeset View
Standalone View
Standalone View
swh/model/hypothesis_strategies.py
Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | return builds( | ||||
TimestampWithTimezone, | TimestampWithTimezone, | ||||
timestamp=timestamps(), | timestamp=timestamps(), | ||||
offset=integers(min_value=-14*60, max_value=14*60)) | offset=integers(min_value=-14*60, max_value=14*60)) | ||||
def origins(): | def origins(): | ||||
return builds( | return builds( | ||||
Origin, | Origin, | ||||
type=sampled_from(['git', 'hg', 'svn', 'pypi', 'deb']), | |||||
url=urls()) | url=urls()) | ||||
def origin_visits(): | def origin_visits(): | ||||
return builds( | return builds( | ||||
OriginVisit, | OriginVisit, | ||||
visit=integers(0, 1000), | visit=integers(0, 1000), | ||||
origin=urls(), | origin=urls(), | ||||
▲ Show 20 Lines • Show All 165 Lines • Show Last 20 Lines |