Skip to content
Snippets Groups Projects
Commit b70b2814 authored by David Douard's avatar David Douard
Browse files

Fix message generation in hypothesis strategy releases_d()

This can be None, according to the model.
parent 5c5f34fe
No related branches found
Tags debian/upstream/0.0.47
No related merge requests found
...@@ -191,7 +191,7 @@ def origin_visit_statuses(): ...@@ -191,7 +191,7 @@ def origin_visit_statuses():
def releases_d(draw): def releases_d(draw):
target_type = sampled_from([x.value for x in ObjectType]) target_type = sampled_from([x.value for x in ObjectType])
name = binary() name = binary()
message = binary() message = optional(binary())
synthetic = booleans() synthetic = booleans()
target = sha1_git() target = sha1_git()
metadata = optional(revision_metadata()) metadata = optional(revision_metadata())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment