diff --git a/swh/web/tests/common/test_archive.py b/swh/web/tests/common/test_archive.py --- a/swh/web/tests/common/test_archive.py +++ b/swh/web/tests/common/test_archive.py @@ -789,39 +789,50 @@ root_rev_log = archive_data.revision_log(root_rev) rev = root_rev_log[-1]["id"] - assert archive.lookup_revision_through( - { - "origin_url": origin["url"], - "branch_name": branch_name, - "ts": None, - "sha1_git": rev, - } - ) == archive.lookup_revision_with_context_by(origin["url"], branch_name, None, rev) + assert ( + archive.lookup_revision_through( + { + "origin_url": origin["url"], + "branch_name": branch_name, + "ts": None, + "sha1_git": rev, + } + ) + == archive.lookup_revision_with_context_by( + origin["url"], branch_name, None, rev + ) + ) def test_lookup_revision_through_with_revision_by(archive_data, origin): branches = _get_origin_branches(archive_data, origin) branch_name = random.choice(list(branches.keys())) - assert archive.lookup_revision_through( - { - "origin_url": origin["url"], - "branch_name": branch_name, - "ts": None, - } - ) == archive.lookup_revision_by(origin["url"], branch_name, None) + assert ( + archive.lookup_revision_through( + { + "origin_url": origin["url"], + "branch_name": branch_name, + "ts": None, + } + ) + == archive.lookup_revision_by(origin["url"], branch_name, None) + ) def test_lookup_revision_through_with_context(ancestor_revisions): sha1_git = ancestor_revisions["sha1_git"] sha1_git_root = ancestor_revisions["sha1_git_root"] - assert archive.lookup_revision_through( - { - "sha1_git_root": sha1_git_root, - "sha1_git": sha1_git, - } - ) == archive.lookup_revision_with_context(sha1_git_root, sha1_git) + assert ( + archive.lookup_revision_through( + { + "sha1_git_root": sha1_git_root, + "sha1_git": sha1_git, + } + ) + == archive.lookup_revision_with_context(sha1_git_root, sha1_git) + ) def test_lookup_revision_through_with_revision(revision):