archive_data = <swh.web.tests.conftest._ArchiveData object at 0x7f728f84eb00>
origin = {'archives': ['highlightjs-line-numbers.js.zip', 'highlightjs-line-numbers.js_visit2.zip'], 'id': b'MZ\xc0H_lE[d\xcc\x...s://doi.org/10.5063/schema/codemeta-2.0', 'description': 'Line numbering plugin for Highlight.js'}, 'type': 'git', ...}
def test_lookup_revision_log_by(archive_data, origin):
branches = _get_origin_branches(archive_data, origin)
branch_name = random.choice(list(branches.keys()))
actual_log = list(
archive.lookup_revision_log_by(origin["url"], branch_name, None, limit=25)
)
expected_log = archive_data.revision_log(branches[branch_name]["target"], limit=25)
> assert actual_log == expected_log
E AssertionError: assert [{'author': {...0', ...}, ...] == [{'author': {...0', ...}, ...]
E At index 19 diff: {'message': 'Merge pull request #11 from grandorf/master\n\nUpdate package.json', 'author': {'fullname': 'Yauheni Pakala <evgeniy.pakalo@gmail.com>', 'name': 'Yauheni Pakala', 'email': 'evgeniy.pakalo@gmail.com'}, 'committer': {'fullname': 'GitHub <noreply@github.com>', 'name': 'GitHub', 'email': 'noreply@github.com'}, 'date': '2017-04-08T20:05:52+03:00', 'committer_date': '2017-04-08T20:05:52+03:00', 'type': 'git', 'directory': 'f49a027191d2c97002c5b86c2639aba1d36460e7', 'synthetic': False, 'metadata': {}, 'parents': ('2acd76fda5e72d4eee9031221bd340c7...
E
E ...Full output truncated (1699 lines hidden), use '-vv' to show
.tox/py3/lib/python3.7/site-packages/swh/web/tests/common/test_archive.py:560: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Feb 3 2022, 3:57 PM