self = <swh.storage.tests.test_api_client.TestStorage object at 0x7f8b77523f28>
swh_storage = <RemoteStorage url=mock://example.com/>
sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7f8b77b71748>
def test_person_fullname_unicity(self, swh_storage, sample_data):
revision, rev2 = sample_data.revisions[0:2]
# create a revision with same committer fullname but wo name and email
revision2 = attr.evolve(
rev2,
committer=Person(
fullname=revision.committer.fullname, name=None, email=None
),
)
swh_storage.revision_add([revision, revision2])
# when getting added revisions
revisions = list(swh_storage.revision_get([revision.id, revision2.id]))
# then check committers are the same
> assert revisions[0]["committer"] == revisions[1]["committer"]
E AssertionError: assert {'email': b's...o Zacchiroli'} == {'email': Non... 'name': None}
E Omitting 1 identical items, use -vv to show
E Differing items:
E {'email': b'stefano@example.com'} != {'email': None}
E {'name': b'St\xc3fano Zacchiroli'} != {'name': None}
E Full diff:
E {
E - 'email': None,...
E
E ...Full output truncated (6 lines hidden), use '-vv' to show
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_storage.py:2434: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Aug 12 2020, 7:43 PM