@given(objects())
> def test_model_to_dicts(obj_type_and_obj):
.tox/py3/lib/python3.7/site-packages/swh/model/tests/test_hypothesis_strategies.py:125:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.7/site-packages/swh/model/tests/test_hypothesis_strategies.py:128: in test_model_to_dicts
assert_nested_dict(obj_dict)
.tox/py3/lib/python3.7/site-packages/swh/model/tests/test_hypothesis_strategies.py:68: in assert_nested_dict
assert_nested_dict(value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
obj = ()
def assert_nested_dict(obj):
"""Tests the object is a nested dict and contains no more class
from swh.model.model."""
if isinstance(obj, dict):
for (key, value) in obj.items():
assert isinstance(key, (str, bytes)), key
assert_nested_dict(value)
elif isinstance(obj, list):
for value in obj:
assert_nested_dict(value)
elif isinstance(obj, (int, float, str, bytes, bool, type(None), datetime.datetime)):
pass
else:
> assert False, obj
E AssertionError: ()
E assert False
.tox/py3/lib/python3.7/site-packages/swh/model/tests/test_hypothesis_strategies.py:75: AssertionError
TEST RESULT
TEST RESULT
- Run At
- May 25 2020, 2:00 PM