Changeset View
Changeset View
Standalone View
Standalone View
swh/model/hypothesis_strategies.py
Show First 20 Lines • Show All 137 Lines • ▼ Show 20 Lines | return draw(builds( | ||||
blake2s256=binary(min_size=32, max_size=32), | blake2s256=binary(min_size=32, max_size=32), | ||||
status=just(status), | status=just(status), | ||||
data=just(data), | data=just(data), | ||||
reason=just(reason), | reason=just(reason), | ||||
)) | )) | ||||
def branch_names(): | def branch_names(): | ||||
return binary() | return binary(min_size=1) | ||||
def branch_targets_object(): | def branch_targets_object(): | ||||
return builds( | return builds( | ||||
SnapshotBranch, | SnapshotBranch, | ||||
target=sha1_git(), | target=sha1_git(), | ||||
target_type=sampled_from([ | target_type=sampled_from([ | ||||
TargetType.CONTENT, TargetType.DIRECTORY, TargetType.REVISION, | TargetType.CONTENT, TargetType.DIRECTORY, TargetType.REVISION, | ||||
▲ Show 20 Lines • Show All 68 Lines • Show Last 20 Lines |