Skip to content
Snippets Groups Projects
Commit 767ed202 authored by vlorentz's avatar vlorentz
Browse files

Generated content with status=hidden should have a data field.

parent 56eb29f7
No related branches found
No related tags found
No related merge requests found
......@@ -132,7 +132,7 @@ def contents(draw):
(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(
......
......@@ -49,7 +49,7 @@ def test_dicts_generation(obj_type_and_obj):
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':
......
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