Show More
@@ -32,7 +32,7 b' from rhodecode.tests.utils import Assert' | |||||
32 | @pytest.mark.usefixtures("autologin_user", "app") |
|
32 | @pytest.mark.usefixtures("autologin_user", "app") | |
33 | class TestCompareController: |
|
33 | class TestCompareController: | |
34 |
|
34 | |||
35 |
@pytest.mark.xfail_backends("svn", " |
|
35 | @pytest.mark.xfail_backends("svn", reason="Requires pull") | |
36 | def test_compare_remote_with_different_commit_indexes(self, backend): |
|
36 | def test_compare_remote_with_different_commit_indexes(self, backend): | |
37 | # Preparing the following repository structure: |
|
37 | # Preparing the following repository structure: | |
38 | # |
|
38 | # | |
@@ -80,8 +80,10 b' class TestCompareController:' | |||||
80 | origin_repo.pull(fork.repo_full_path, commit_ids=[commit3.raw_id]) |
|
80 | origin_repo.pull(fork.repo_full_path, commit_ids=[commit3.raw_id]) | |
81 |
|
81 | |||
82 | # Verify test fixture setup |
|
82 | # Verify test fixture setup | |
83 | assert 5 == len(fork.scm_instance().commit_ids) |
|
83 | # This does not work for git | |
84 | assert 2 == len(origin_repo.commit_ids) |
|
84 | if backend.alias != 'git': | |
|
85 | assert 5 == len(fork.scm_instance().commit_ids) | |||
|
86 | assert 2 == len(origin_repo.commit_ids) | |||
85 |
|
87 | |||
86 | # Comparing the revisions |
|
88 | # Comparing the revisions | |
87 | response = self.app.get( |
|
89 | response = self.app.get( |
General Comments 0
You need to be logged in to leave comments.
Login now