From 90b477e52104bbcf0e4326af3f213786f2677977 Mon Sep 17 00:00:00 2001
From: Valentin Lorentz <vlorentz@softwareheritage.org>
Date: Fri, 25 Jun 2021 16:13:37 +0200
Subject: [PATCH] hypothesis_strategies: Generate None metadata instead of {}

This is the only value we should use from now on;
and the value is ignored by swh-storage anyway.
---
 swh/model/hypothesis_strategies.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/swh/model/hypothesis_strategies.py b/swh/model/hypothesis_strategies.py
index d9a813a1..cdd4d1ab 100644
--- a/swh/model/hypothesis_strategies.py
+++ b/swh/model/hypothesis_strategies.py
@@ -422,11 +422,11 @@ def snapshots(*, min_size=0, max_size=100, only_objects=False):
 
 
 def metadata_authorities():
-    return builds(MetadataAuthority, url=urls(), metadata=just({}))
+    return builds(MetadataAuthority, url=urls(), metadata=just(None))
 
 
 def metadata_fetchers():
-    return builds(MetadataFetcher, metadata=just({}))
+    return builds(MetadataFetcher, metadata=just(None))
 
 
 def raw_extrinsic_metadata():
-- 
GitLab