From b70b281404fff1ad5d15f6a551f52356e98c6025 Mon Sep 17 00:00:00 2001
From: David Douard <david.douard@sdfa3.org>
Date: Tue, 16 Jun 2020 10:03:37 +0200
Subject: [PATCH] Fix message generation in hypothesis strategy releases_d()

This can be None, according to the model.
---
 swh/model/hypothesis_strategies.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/swh/model/hypothesis_strategies.py b/swh/model/hypothesis_strategies.py
index a79bf109..18d46ba1 100644
--- a/swh/model/hypothesis_strategies.py
+++ b/swh/model/hypothesis_strategies.py
@@ -191,7 +191,7 @@ def origin_visit_statuses():
 def releases_d(draw):
     target_type = sampled_from([x.value for x in ObjectType])
     name = binary()
-    message = binary()
+    message = optional(binary())
     synthetic = booleans()
     target = sha1_git()
     metadata = optional(revision_metadata())
-- 
GitLab