diff --git a/swh/model/hypothesis_strategies.py b/swh/model/hypothesis_strategies.py --- a/swh/model/hypothesis_strategies.py +++ b/swh/model/hypothesis_strategies.py @@ -132,7 +132,7 @@ (status, data, reason) = draw(one_of( tuples(just('visible'), binary(), none()), tuples(just('absent'), none(), pgsql_text()), - tuples(just('hidden'), none(), none()), + tuples(just('hidden'), binary(), none()), )) return draw(builds( diff --git a/swh/model/tests/test_hypothesis_strategies.py b/swh/model/tests/test_hypothesis_strategies.py --- a/swh/model/tests/test_hypothesis_strategies.py +++ b/swh/model/tests/test_hypothesis_strategies.py @@ -49,7 +49,7 @@ set(DEFAULT_ALGORITHMS) | {'length', 'status', 'reason'} elif object_['status'] == 'hidden': assert set(object_) == \ - set(DEFAULT_ALGORITHMS) | {'length', 'status'} + set(DEFAULT_ALGORITHMS) | {'length', 'status', 'data'} else: assert False, object_ elif obj_type == 'release':