@pytest.mark.shard_max_size(1)
def test_winery_add_and_pack(winery):
try:
shard = winery.base.whoami
content = b"SOMETHING"
obj_id = winery.add(content=content)
assert obj_id.hex() == "0c8c841f7d9fd4874d841506d3ffc16808b1d579"
> assert winery.base.whoami != shard
E AssertionError: assert 'i7500a3cec0a42fda7962c5e1837bef5' != 'i7500a3cec0a42fda7962c5e1837bef5'
E + where 'i7500a3cec0a42fda7962c5e1837bef5' = <swh.objstorage.backends.winery.sharedbase.SharedBase object at 0x7f87a96d0fd0>.whoami
E + where <swh.objstorage.backends.winery.sharedbase.SharedBase object at 0x7f87a96d0fd0> = <swh.objstorage.backends.winery.objstorage.WineryObjStorage object at 0x7f87a9445b70>.base
.tox/py3/lib/python3.7/site-packages/swh/objstorage/tests/test_objstorage_winery.py:98: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Dec 10 2021, 11:37 PM