##// END OF EJS Templates
test fixes
marcink -
r1788:ef061358 beta
parent child Browse files
Show More
@@ -88,7 +88,7 b''
88 88 %endfor
89 89
90 90 %for co in c.comments:
91 ${comment.comment_block(co)}
91 ${comment_block(co)}
92 92 %endfor
93 93 %if c.rhodecode_user.username != 'default':
94 94 <div class="comment-form">
@@ -6,10 +6,9 b' class TestBranchesController(TestControl'
6 6 self.log_user()
7 7 response = self.app.get(url(controller='branches',
8 8 action='index', repo_name=HG_REPO))
9
10 self.assertTrue("""<a href="/%s/changeset/27cd5cce30c96924232dffcd24178a07ffeb5dfc">default</a>""" % HG_REPO in response.body)
11 self.assertTrue("""<a href="/%s/changeset/97e8b885c04894463c51898e14387d80c30ed1ee">git</a>""" % HG_REPO in response.body)
12 self.assertTrue("""<a href="/%s/changeset/2e6a2bf9356ca56df08807f4ad86d480da72a8f4">web</a>""" % HG_REPO in response.body)
9 response.mustcontain("""<a href="/%s/files/27cd5cce30c96924232dffcd24178a07ffeb5dfc/">default</a>""" % HG_REPO)
10 response.mustcontain("""<a href="/%s/files/97e8b885c04894463c51898e14387d80c30ed1ee/">git</a>""" % HG_REPO)
11 response.mustcontain("""<a href="/%s/files/2e6a2bf9356ca56df08807f4ad86d480da72a8f4/">web</a>""" % HG_REPO)
13 12
14 13
15 14
@@ -1,22 +1,22 b''
1 1 from rhodecode.tests import *
2 2
3
3 4 class TestHomeController(TestController):
4 5
5 6 def test_index(self):
6 7 self.log_user()
7 8 response = self.app.get(url(controller='home', action='index'))
8 9 #if global permission is set
9 self.assertTrue('ADD NEW REPOSITORY' in response.body)
10 self.assertTrue('href="/%s/summary"' % HG_REPO in response.body)
11 # Test response...
10 response.mustcontain('ADD REPOSITORY')
11 response.mustcontain('href="/%s/summary"' % HG_REPO)
12 12
13 self.assertTrue("""<img class="icon" title="Mercurial repository" """
13 response.mustcontain("""<img class="icon" title="Mercurial repository" """
14 14 """alt="Mercurial repository" src="/images/icons/hg"""
15 """icon.png"/>""" in response.body)
16 self.assertTrue("""<img class="icon" title="public repository" """
15 """icon.png"/>""")
16 response.mustcontain("""<img class="icon" title="public repository" """
17 17 """alt="public repository" src="/images/icons/lock_"""
18 """open.png"/>""" in response.body)
19
20 self.assertTrue("""<a title="Marcin Kuzminski &lt;marcin@python-works.com&gt;
21 merge" class="tooltip" href="/vcs_test_hg/changeset/27cd5cce30c96924232dffcd24178a07ffeb5dfc">r173:27cd5cce30c9</a>"""
22 in response.body)
18 """open.png"/>""")
19
20 response.mustcontain(
21 """<a title="Marcin Kuzminski &lt;marcin@python-works.com&gt;:\n
22 merge" class="tooltip" href="/vcs_test_hg/changeset/27cd5cce30c96924232dffcd24178a07ffeb5dfc">r173:27cd5cce30c9</a>""")
@@ -5,9 +5,9 b' class TestTagsController(TestController)'
5 5 def test_index(self):
6 6 self.log_user()
7 7 response = self.app.get(url(controller='tags', action='index', repo_name=HG_REPO))
8 assert """<a href="/%s/changeset/27cd5cce30c96924232dffcd24178a07ffeb5dfc">tip</a>""" % HG_REPO in response.body, 'wrong info about tip tag'
9 assert """<a href="/%s/changeset/fd4bdb5e9b2a29b4393a4ac6caef48c17ee1a200">0.1.4</a>""" % HG_REPO in response.body, 'wrong info about 0.1.4 tag'
10 assert """<a href="/%s/changeset/17544fbfcd33ffb439e2b728b5d526b1ef30bfcf">0.1.3</a>""" % HG_REPO in response.body, 'wrong info about 0.1.3 tag'
11 assert """<a href="/%s/changeset/a7e60bff65d57ac3a1a1ce3b12a70f8a9e8a7720">0.1.2</a>""" % HG_REPO in response.body, 'wrong info about 0.1.2 tag'
12 assert """<a href="/%s/changeset/eb3a60fc964309c1a318b8dfe26aa2d1586c85ae">0.1.1</a>""" % HG_REPO in response.body, 'wrong info about 0.1.1 tag'
13 # Test response...
8 response.mustcontain("""<a href="/%s/files/27cd5cce30c96924232dffcd24178a07ffeb5dfc/">tip</a>""" % HG_REPO)
9 response.mustcontain("""<a href="/%s/files/fd4bdb5e9b2a29b4393a4ac6caef48c17ee1a200/">0.1.4</a>""" % HG_REPO)
10 response.mustcontain("""<a href="/%s/files/17544fbfcd33ffb439e2b728b5d526b1ef30bfcf/">0.1.3</a>""" % HG_REPO)
11 response.mustcontain("""<a href="/%s/files/a7e60bff65d57ac3a1a1ce3b12a70f8a9e8a7720/">0.1.2</a>""" % HG_REPO)
12 response.mustcontain("""<a href="/%s/files/eb3a60fc964309c1a318b8dfe26aa2d1586c85ae/">0.1.1</a>""" % HG_REPO)
13
General Comments 0
You need to be logged in to leave comments. Login now