changeset 3291:f4ce9416cbd5 beta

fixed tests
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 31 Jan 2013 23:23:56 +0100
parents e4025b361fcf
children 2464ac75d77a
files rhodecode/tests/functional/test_forks.py rhodecode/tests/functional/test_home.py rhodecode/tests/functional/test_search.py rhodecode/tests/functional/test_summary.py
diffstat 4 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/tests/functional/test_forks.py	Thu Jan 31 23:20:28 2013 +0100
+++ b/rhodecode/tests/functional/test_forks.py	Thu Jan 31 23:23:56 2013 +0100
@@ -66,7 +66,7 @@
                                     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 @@
                                     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
--- a/rhodecode/tests/functional/test_home.py	Thu Jan 31 23:20:28 2013 +0100
+++ b/rhodecode/tests/functional/test_home.py	Thu Jan 31 23:23:56 2013 +0100
@@ -15,7 +15,7 @@
         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"""
--- a/rhodecode/tests/functional/test_search.py	Thu Jan 31 23:20:28 2013 +0100
+++ b/rhodecode/tests/functional/test_search.py	Thu Jan 31 23:23:56 2013 +0100
@@ -56,7 +56,7 @@
     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'})
 
--- a/rhodecode/tests/functional/test_summary.py	Thu Jan 31 23:20:28 2013 +0100
+++ b/rhodecode/tests/functional/test_summary.py	Thu Jan 31 23:23:56 2013 +0100
@@ -44,8 +44,8 @@
         )
 
         # 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 @@
         )
 
         # 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()