self = <swh.storage.tests.test_api_client.TestStorage object at 0x7efecffdf898>
swh_storage = <RemoteStorage url=mock://example.com/>
sample_data_model = {'authority': [MetadataAuthority(type=<MetadataAuthorityType.DEPOSIT_CLIENT: 'deposit_client'>, url='http://hal.inria....11', length=7, status='visible', data=b'424242\n', ctime=datetime.datetime(2019, 12, 1, 0, 0, tzinfo=tzlocal()))], ...}
def test_revision_get_no_parents(self, swh_storage, sample_data_model):
revision = sample_data_model["revision"][2]
swh_storage.revision_add([revision])
get = list(swh_storage.revision_get([revision.id]))
assert len(get) == 1
> assert get[0]["parents"] == () # no parents on this one
E assert [] == ()
E Full diff:
E - ()
E + []
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_storage.py:1041: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Jul 21 2020, 10:58 AM