self = <swh.storage.tests.test_postgresql.TestStorage object at 0x7fc30c67d828>
swh_storage = <swh.storage.postgresql.storage.Storage object at 0x7fc0e2616550>
@settings(
> suppress_health_check=[HealthCheck.too_slow, HealthCheck.data_too_large]
+ function_scoped_fixture_check,
)
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/storage_tests.py:771:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <swh.storage.tests.test_postgresql.TestStorage object at 0x7fc30c67d828>
swh_storage = <swh.storage.postgresql.storage.Storage object at 0x7fc0e2616550>
directories = [Directory(entries=(DirectoryEntry(name=b'', type='dir', target=hash_to_bytes('0000000000000000000000000000000000000000'), perms=0o40000),), id=hash_to_bytes('da39a3ee5e6b4b0d3255bfef95601890afd80709'), raw_manifest=b'')]
@settings(
suppress_health_check=[HealthCheck.too_slow, HealthCheck.data_too_large]
+ function_scoped_fixture_check,
)
@given(
strategies.lists(hypothesis_strategies.directories(), min_size=1, max_size=10)
)
def test_directory_add_get_arbitrary(self, swh_storage, directories):
swh_storage.directory_add(directories)
for directory in directories:
> assert directory == Directory(
id=directory.id,
entries=tuple(
stream_results(swh_storage.directory_get_entries, directory.id)
),
raw_manifest=swh_storage.directory_get_raw_manifest([directory.id])[
directory.id
],
)
E assert Directory(ent..._manifest=b'') == Directory(ent..._manifest=b'')
E
E Omitting 2 identical items, use -vv to show
E Differing attributes:
E ['entries']
E
E Drill down into differing attribute entries:
E entries: (DirectoryEntry(name=b'', type='dir', target=hash_to_bytes('0000000000000000000000000000000000000000'), perms=0o40000),) != (DirectoryEntry(name=b"'\xa0%\x17\xaeI\x9bq", type='rev', target=hash_to_bytes('288870c31602dea8eeed86e8098eee5f04409050'), perms=0o160000),)...
E
E ...Full output truncated (5 lines hidden), use '-vv' to show
E Falsifying example: test_directory_add_get_arbitrary(
E directories=[Directory(entries=(DirectoryEntry(name=b'', type='dir', target=hash_to_bytes('0000000000000000000000000000000000000000'), perms=0o40000),), id=hash_to_bytes('da39a3ee5e6b4b0d3255bfef95601890afd80709'), raw_manifest=b'')],
E self=<swh.storage.tests.test_postgresql.TestStorage at 0x7fc30c67d828>,
E swh_storage=<swh.storage.postgresql.storage.Storage at 0x7fc0e2616550>,
E )
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/storage_tests.py:781: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Aug 4 2022, 2:25 PM