@given(strategies.directories())
> def test_directory_raw_manifest(directory):
.tox/py3-full/lib/python3.7/site-packages/swh/model/tests/test_model.py:774:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
directory = Directory(entries=(DirectoryEntry(name=b'', type='file', target=hash_to_bytes('0000000000000000000000000000000000000000'), perms=0o100000),), id=hash_to_bytes('5ba93c9db0cff93f52b521d7420e43f6eda2784f'), raw_manifest=b'\x00')
@given(strategies.directories())
def test_directory_raw_manifest(directory):
> assert "raw_manifest" not in directory.to_dict()
E AssertionError: assert 'raw_manifest' not in {'entries': ({'name': b'', 'perms': 32768, 'target': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0...0\x00\x00', 'type': 'file'},), 'id': b'[\xa9<\x9d\xb0\xcf\xf9?R\xb5!\xd7B\x0eC\xf6\xed\xa2xO', 'raw_manifest': b'\x00'}
E + where {'entries': ({'name': b'', 'perms': 32768, 'target': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0...0\x00\x00', 'type': 'file'},), 'id': b'[\xa9<\x9d\xb0\xcf\xf9?R\xb5!\xd7B\x0eC\xf6\xed\xa2xO', 'raw_manifest': b'\x00'} = <bound method HashableObjectWithManifest.to_dict of Directory(entries=(DirectoryEntry(name=b'', type='file', target=ha...000000000000'), perms=0o100000),), id=hash_to_bytes('5ba93c9db0cff93f52b521d7420e43f6eda2784f'), raw_manifest=b'\x00')>()
E + where <bound method HashableObjectWithManifest.to_dict of Directory(entries=(DirectoryEntry(name=b'', type='file', target=ha...000000000000'), perms=0o100000),), id=hash_to_bytes('5ba93c9db0cff93f52b521d7420e43f6eda2784f'), raw_manifest=b'\x00')> = Directory(entries=(DirectoryEntry(name=b'', type='file', target=hash_to_bytes('0000000000000000000000000000000000000000'), perms=0o100000),), id=hash_to_bytes('5ba93c9db0cff93f52b521d7420e43f6eda2784f'), raw_manifest=b'\x00').to_dict
.tox/py3-full/lib/python3.7/site-packages/swh/model/tests/test_model.py:775: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Dec 15 2021, 6:56 PM