diff options
author | Marcin Kuzminski <marcin@python-works.com> | 2013-02-04 02:18:44 +0100 |
---|---|---|
committer | Marcin Kuzminski <marcin@python-works.com> | 2013-02-04 02:18:44 +0100 |
commit | 9418fb6da327552503100ba0e4b42a611f9af87f (patch) | |
tree | 24fa6a90a937b641cb7b70314f356b0f6e511a2a /rhodecode/tests | |
parent | 39bb6f55aa037c510665237cd1b84de1e5aaa050 (diff) |
fixed broken swap url, and added a test to detect it in feature
--HG--
branch : beta
Diffstat (limited to 'rhodecode/tests')
-rw-r--r-- | rhodecode/tests/functional/test_compare.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/rhodecode/tests/functional/test_compare.py b/rhodecode/tests/functional/test_compare.py index b4538301..d505cb13 100644 --- a/rhodecode/tests/functional/test_compare.py +++ b/rhodecode/tests/functional/test_compare.py @@ -109,7 +109,8 @@ class TestCompareController(TestController): response.mustcontain("""<a href="/%s/changeset/%s">r2:%s</a>""" % (repo2.repo_name, cs2.raw_id, cs2.short_id)) ## files response.mustcontain("""<a href="/%s/compare/branch@%s...branch@%s?other_repo=%s#C--826e8142e6ba">file1</a>""" % (repo2.repo_name, rev1, rev2, repo1.repo_name)) - + #swap + response.mustcontain("""<a href="/%s/compare/branch@%s...branch@%s?as_form=None&other_repo=%s">[swap]</a>""" % (repo1.repo_name, rev1, rev2, repo2.repo_name)) finally: RepoModel().delete(r2_id) RepoModel().delete(r1_id) @@ -166,7 +167,8 @@ class TestCompareController(TestController): response.mustcontain("""<a href="/%s/changeset/%s">r2:%s</a>""" % (repo2.repo_name, cs2.raw_id, cs2.short_id)) ## files response.mustcontain("""<a href="/%s/compare/branch@%s...branch@%s?other_repo=%s#C--826e8142e6ba">file1</a>""" % (repo2.repo_name, rev1, rev2, repo1.repo_name)) - + #swap + response.mustcontain("""<a href="/%s/compare/branch@%s...branch@%s?as_form=None&other_repo=%s">[swap]</a>""" % (repo1.repo_name, rev1, rev2, repo2.repo_name)) finally: RepoModel().delete(r2_id) RepoModel().delete(r1_id) |