diff --git a/rhodecode/apps/repository/tests/test_repo_files.py b/rhodecode/apps/repository/tests/test_repo_files.py --- a/rhodecode/apps/repository/tests/test_repo_files.py +++ b/rhodecode/apps/repository/tests/test_repo_files.py @@ -21,19 +21,19 @@ import os import mock import pytest +from collections import OrderedDict from rhodecode.apps.repository.tests.test_repo_compare import ComparePage from rhodecode.apps.repository.views.repo_files import RepoFilesView, get_archive_name, get_path_sha from rhodecode.lib import helpers as h -from collections import OrderedDict from rhodecode.lib.ext_json import json from rhodecode.lib.str_utils import safe_str from rhodecode.lib.vcs import nodes +from rhodecode.lib.vcs.conf import settings +from rhodecode.model.db import Session, Repository -from rhodecode.lib.vcs.conf import settings from rhodecode.tests import assert_session_flash from rhodecode.tests.fixture import Fixture -from rhodecode.model.db import Session fixture = Fixture() @@ -171,7 +171,7 @@ class TestFilesViews(object): {'message': 'b', 'branch': new_branch} ] backend.create_repo(commits) - backend.repo.landing_rev = "branch:%s" % new_branch + backend.repo.landing_rev = f"branch:{new_branch}" Session().commit() # get response based on tip and not new commit @@ -187,8 +187,7 @@ class TestFilesViews(object): commit_id=landing_rev, params={'at': landing_rev}) assert landing_rev != 'tip' - response.mustcontain( - '