##// END OF EJS Templates
fixed tests
marcink -
r3291:f4ce9416 beta
parent child Browse files
Show More
@@ -66,7 +66,7 b' class TestForksController(TestController'
66 repo_name=repo_name))
66 repo_name=repo_name))
67
67
68 response.mustcontain(
68 response.mustcontain(
69 """<a href="/%s/summary">%s</a>""" % (fork_name, fork_name)
69 """<a href="/%s">%s</a>""" % (fork_name, fork_name)
70 )
70 )
71
71
72 #remove this fork
72 #remove this fork
@@ -95,7 +95,7 b' class TestForksController(TestController'
95 repo_name=repo_name))
95 repo_name=repo_name))
96
96
97 response.mustcontain(
97 response.mustcontain(
98 """<a href="/%s/summary">%s</a>""" % (fork_name, fork_name)
98 """<a href="/%s">%s</a>""" % (fork_name, fork_name)
99 )
99 )
100
100
101 #remove this fork
101 #remove this fork
@@ -15,7 +15,7 b' class TestHomeController(TestController)'
15 response = self.app.get(url(controller='home', action='index'))
15 response = self.app.get(url(controller='home', action='index'))
16 #if global permission is set
16 #if global permission is set
17 response.mustcontain('Add repository')
17 response.mustcontain('Add repository')
18 response.mustcontain('href="/%s/summary"' % HG_REPO)
18 response.mustcontain('href="/%s"' % HG_REPO)
19
19
20 response.mustcontain("""<img class="icon" title="Mercurial repository" """
20 response.mustcontain("""<img class="icon" title="Mercurial repository" """
21 """alt="Mercurial repository" src="/images/icons/hg"""
21 """alt="Mercurial repository" src="/images/icons/hg"""
@@ -56,7 +56,7 b' class TestSearchController(TestControlle'
56 def test_search_commit_message_hg_repo(self):
56 def test_search_commit_message_hg_repo(self):
57 self.log_user()
57 self.log_user()
58 response = self.app.get(url(controller='search', action='index',
58 response = self.app.get(url(controller='search', action='index',
59 search_repo=HG_REPO),
59 repo_name=HG_REPO),
60 {'q': 'bother to ask where to fetch repo during tests',
60 {'q': 'bother to ask where to fetch repo during tests',
61 'type': 'commit'})
61 'type': 'commit'})
62
62
@@ -44,8 +44,8 b' class TestSummaryController(TestControll'
44 )
44 )
45
45
46 # clone url...
46 # clone url...
47 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)
47 response.mustcontain('''id="clone_url" readonly="readonly" value="http://test_admin@localhost:80/%s"''' % HG_REPO)
48 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)
48 response.mustcontain('''id="clone_url_id" readonly="readonly" value="http://test_admin@localhost:80/_%s"''' % ID)
49
49
50 def test_index_git(self):
50 def test_index_git(self):
51 self.log_user()
51 self.log_user()
@@ -67,8 +67,8 b' class TestSummaryController(TestControll'
67 )
67 )
68
68
69 # clone url...
69 # clone url...
70 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)
70 response.mustcontain('''id="clone_url" readonly="readonly" value="http://test_admin@localhost:80/%s"''' % GIT_REPO)
71 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)
71 response.mustcontain('''id="clone_url_id" readonly="readonly" value="http://test_admin@localhost:80/_%s"''' % ID)
72
72
73 def test_index_by_id_hg(self):
73 def test_index_by_id_hg(self):
74 self.log_user()
74 self.log_user()
General Comments 0
You need to be logged in to leave comments. Login now