Page MenuHomeSoftware Heritage

D1860.id6273.diff
No OneTemporary

D1860.id6273.diff

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':

File Metadata

Mime Type
text/plain
Expires
Mar 17 2025, 6:20 PM (7 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3217346

Event Timeline