Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.web.tests.api.views.test_revision::Tests / Python tests / test_api_revision_log
Failed

TEST RESULT

Run At
Feb 3 2022, 11:28 AM
Details
api_client = <rest_framework.test.APIClient object at 0x7f28c8b86438> archive_data = <swh.web.tests.conftest._ArchiveData object at 0x7f28c93ebf98> revision = 'c0519a1683ccebf7a9885c2e5fb54043548ec8f3' def test_api_revision_log(api_client, archive_data, revision): limit = 10 url = reverse( "api-1-revision-log", url_args={"sha1_git": revision}, query_params={"limit": limit}, ) rv = check_api_get_responses(api_client, url, status_code=200) expected_log = archive_data.revision_log(revision, limit=limit) expected_log = list( map(enrich_revision, expected_log, [rv.wsgi_request] * len(expected_log)) ) > assert rv.data == expected_log E AssertionError: assert [{'author': {...0', ...}, ...] == [{'author': {...0', ...}, ...] E At index 8 diff: {'message': 'remove string format function from global object\n', 'author': {'fullname': 'Yauheni Pakala <evgeniy.pakalo@gmail.com>', 'name': 'Yauheni Pakala', 'email': 'evgeniy.pakalo@gmail.com'}, 'committer': {'fullname': 'Yauheni Pakala <evgeniy.pakalo@gmail.com>', 'name': 'Yauheni Pakala', 'email': 'evgeniy.pakalo@gmail.com'}, 'date': '2017-09-23T17:53:23+03:00', 'committer_date': '2017-09-23T17:53:23+03:00', 'type': 'git', 'directory': '4a0f2f37d98d4f8818503df2f9dac71fddd8108f', 'synthetic': False, 'metadata': {}, 'parents': ({'id': '9875da0ad7c8ef... E E ...Full output truncated (1317 lines hidden), use '-vv' to show .tox/py3/lib/python3.7/site-packages/swh/web/tests/api/views/test_revision.py:85: AssertionError