diff options
author | Marcin Kuzminski <marcin@python-works.com> | 2013-01-31 23:23:56 +0100 |
---|---|---|
committer | Marcin Kuzminski <marcin@python-works.com> | 2013-01-31 23:23:56 +0100 |
commit | e058d6568e108bf35d4e7988e27cd7f6ff421362 (patch) | |
tree | cedd12b7d0cb1fdae89075394bb2faf58cf4a766 /rhodecode/tests | |
parent | e240d76cba8534c8de1bfd0c4949fad05d11c23a (diff) |
fixed tests
--HG--
branch : beta
extra : amend_source : 642491ef1f144d5ce9ec7111e7882a3a08fca421
Diffstat (limited to 'rhodecode/tests')
-rw-r--r-- | rhodecode/tests/functional/test_forks.py | 4 | ||||
-rw-r--r-- | rhodecode/tests/functional/test_home.py | 2 | ||||
-rw-r--r-- | rhodecode/tests/functional/test_search.py | 2 | ||||
-rw-r--r-- | rhodecode/tests/functional/test_summary.py | 8 |
4 files changed, 8 insertions, 8 deletions
diff --git a/rhodecode/tests/functional/test_forks.py b/rhodecode/tests/functional/test_forks.py index c56e0c71..9080f45e 100644 --- a/rhodecode/tests/functional/test_forks.py +++ b/rhodecode/tests/functional/test_forks.py @@ -66,7 +66,7 @@ class TestForksController(TestController): repo_name=repo_name)) response.mustcontain( - """<a href="/%s/summary">%s</a>""" % (fork_name, fork_name) + """<a href="/%s">%s</a>""" % (fork_name, fork_name) ) #remove this fork @@ -95,7 +95,7 @@ class TestForksController(TestController): repo_name=repo_name)) response.mustcontain( - """<a href="/%s/summary">%s</a>""" % (fork_name, fork_name) + """<a href="/%s">%s</a>""" % (fork_name, fork_name) ) #remove this fork diff --git a/rhodecode/tests/functional/test_home.py b/rhodecode/tests/functional/test_home.py index 450599d9..bcba4b82 100644 --- a/rhodecode/tests/functional/test_home.py +++ b/rhodecode/tests/functional/test_home.py @@ -15,7 +15,7 @@ class TestHomeController(TestController): response = self.app.get(url(controller='home', action='index')) #if global permission is set response.mustcontain('Add repository') - response.mustcontain('href="/%s/summary"' % HG_REPO) + response.mustcontain('href="/%s"' % HG_REPO) response.mustcontain("""<img class="icon" title="Mercurial repository" """ """alt="Mercurial repository" src="/images/icons/hg""" diff --git a/rhodecode/tests/functional/test_search.py b/rhodecode/tests/functional/test_search.py index c96f2f3b..91613388 100644 --- a/rhodecode/tests/functional/test_search.py +++ b/rhodecode/tests/functional/test_search.py @@ -56,7 +56,7 @@ class TestSearchController(TestController): def test_search_commit_message_hg_repo(self): self.log_user() response = self.app.get(url(controller='search', action='index', - search_repo=HG_REPO), + repo_name=HG_REPO), {'q': 'bother to ask where to fetch repo during tests', 'type': 'commit'}) diff --git a/rhodecode/tests/functional/test_summary.py b/rhodecode/tests/functional/test_summary.py index 3dbeb1c8..cfc3e0dc 100644 --- a/rhodecode/tests/functional/test_summary.py +++ b/rhodecode/tests/functional/test_summary.py @@ -44,8 +44,8 @@ class TestSummaryController(TestController): ) # clone url... - response.mustcontain("""<input style="width:80%%;margin-left:105px" type="text" id="clone_url" readonly="readonly" value="http://test_admin@localhost:80/%s"/>""" % HG_REPO) - response.mustcontain("""<input style="display:none;width:80%%;margin-left:105px" type="text" id="clone_url_id" readonly="readonly" value="http://test_admin@localhost:80/_%s"/>""" % ID) + response.mustcontain('''id="clone_url" readonly="readonly" value="http://test_admin@localhost:80/%s"''' % HG_REPO) + response.mustcontain('''id="clone_url_id" readonly="readonly" value="http://test_admin@localhost:80/_%s"''' % ID) def test_index_git(self): self.log_user() @@ -67,8 +67,8 @@ class TestSummaryController(TestController): ) # clone url... - response.mustcontain("""<input style="width:80%%;margin-left:105px" type="text" id="clone_url" readonly="readonly" value="http://test_admin@localhost:80/%s"/>""" % GIT_REPO) - response.mustcontain("""<input style="display:none;width:80%%;margin-left:105px" type="text" id="clone_url_id" readonly="readonly" value="http://test_admin@localhost:80/_%s"/>""" % ID) + response.mustcontain('''id="clone_url" readonly="readonly" value="http://test_admin@localhost:80/%s"''' % GIT_REPO) + response.mustcontain('''id="clone_url_id" readonly="readonly" value="http://test_admin@localhost:80/_%s"''' % ID) def test_index_by_id_hg(self): self.log_user() |