Show More
@@ -10,8 +10,10 b' class TestChangelogController(TestContro' | |||||
10 |
|
10 | |||
11 | response.mustcontain("""<div id="chg_20" class="container tablerow1">""") |
|
11 | response.mustcontain("""<div id="chg_20" class="container tablerow1">""") | |
12 | response.mustcontain( |
|
12 | response.mustcontain( | |
13 |
"""<input class="changeset_range" |
|
13 | """<input class="changeset_range" """ | |
14 | """name="5e204e7583b9" type="checkbox" value="1" />""" |
|
14 | """id="5e204e7583b9c8e7b93a020bd036564b1e731dae" """ | |
|
15 | """name="5e204e7583b9c8e7b93a020bd036564b1e731dae" """ | |||
|
16 | """type="checkbox" value="1" />""" | |||
15 | ) |
|
17 | ) | |
16 | response.mustcontain( |
|
18 | response.mustcontain( | |
17 | """<span class="changeset_id">154:""" |
|
19 | """<span class="changeset_id">154:""" | |
@@ -29,22 +31,24 b' class TestChangelogController(TestContro' | |||||
29 |
|
31 | |||
30 | #pagination |
|
32 | #pagination | |
31 | response = self.app.get(url(controller='changelog', action='index', |
|
33 | response = self.app.get(url(controller='changelog', action='index', | |
32 | repo_name=HG_REPO), {'page':1}) |
|
34 | repo_name=HG_REPO), {'page': 1}) | |
33 | response = self.app.get(url(controller='changelog', action='index', |
|
35 | response = self.app.get(url(controller='changelog', action='index', | |
34 | repo_name=HG_REPO), {'page':2}) |
|
36 | repo_name=HG_REPO), {'page': 2}) | |
35 | response = self.app.get(url(controller='changelog', action='index', |
|
37 | response = self.app.get(url(controller='changelog', action='index', | |
36 | repo_name=HG_REPO), {'page':3}) |
|
38 | repo_name=HG_REPO), {'page': 3}) | |
37 | response = self.app.get(url(controller='changelog', action='index', |
|
39 | response = self.app.get(url(controller='changelog', action='index', | |
38 | repo_name=HG_REPO), {'page':4}) |
|
40 | repo_name=HG_REPO), {'page': 4}) | |
39 | response = self.app.get(url(controller='changelog', action='index', |
|
41 | response = self.app.get(url(controller='changelog', action='index', | |
40 | repo_name=HG_REPO), {'page':5}) |
|
42 | repo_name=HG_REPO), {'page': 5}) | |
41 | response = self.app.get(url(controller='changelog', action='index', |
|
43 | response = self.app.get(url(controller='changelog', action='index', | |
42 | repo_name=HG_REPO), {'page':6}) |
|
44 | repo_name=HG_REPO), {'page': 6}) | |
43 |
|
45 | |||
44 | # Test response after pagination... |
|
46 | # Test response after pagination... | |
45 | response.mustcontain( |
|
47 | response.mustcontain( | |
46 |
"""<input class="changeset_range" |
|
48 | """<input class="changeset_range" """ | |
47 |
""" |
|
49 | """id="46ad32a4f974e45472a898c6b0acb600320579b1" """ | |
|
50 | """name="46ad32a4f974e45472a898c6b0acb600320579b1" """ | |||
|
51 | """type="checkbox" value="1" />""" | |||
48 | ) |
|
52 | ) | |
49 | response.mustcontain( |
|
53 | response.mustcontain( | |
50 | """<span class="changeset_id">64:""" |
|
54 | """<span class="changeset_id">64:""" |
@@ -262,14 +262,14 b' class TestNotifications(unittest.TestCas' | |||||
262 | self.u2 = UserModel().create_or_update(username=u'u2', |
|
262 | self.u2 = UserModel().create_or_update(username=u'u2', | |
263 | password=u'qweqwe', |
|
263 | password=u'qweqwe', | |
264 | email=u'u2@rhodecode.org', |
|
264 | email=u'u2@rhodecode.org', | |
265 | name=u'u2', lastname=u'u3') |
|
265 | firstname=u'u2', lastname=u'u3') | |
266 | Session.commit() |
|
266 | Session.commit() | |
267 | self.u2 = self.u2.user_id |
|
267 | self.u2 = self.u2.user_id | |
268 |
|
268 | |||
269 | self.u3 = UserModel().create_or_update(username=u'u3', |
|
269 | self.u3 = UserModel().create_or_update(username=u'u3', | |
270 | password=u'qweqwe', |
|
270 | password=u'qweqwe', | |
271 | email=u'u3@rhodecode.org', |
|
271 | email=u'u3@rhodecode.org', | |
272 | name=u'u3', lastname=u'u3') |
|
272 | firstname=u'u3', lastname=u'u3') | |
273 | Session.commit() |
|
273 | Session.commit() | |
274 | self.u3 = self.u3.user_id |
|
274 | self.u3 = self.u3.user_id | |
275 |
|
275 |
@@ -170,7 +170,7 b' class TestReposGroups(unittest.TestCase)' | |||||
170 | self.assertEqual(expected, validator.to_python(name)) |
|
170 | self.assertEqual(expected, validator.to_python(name)) | |
171 |
|
171 | |||
172 | def test_ValidCloneUri(self): |
|
172 | def test_ValidCloneUri(self): | |
173 | assert False |
|
173 | self.fail('TODO:') | |
174 |
|
174 | |||
175 | def test_ValidForkType(self): |
|
175 | def test_ValidForkType(self): | |
176 | validator = v.ValidForkType(old_data={'repo_type': 'hg'}) |
|
176 | validator = v.ValidForkType(old_data={'repo_type': 'hg'}) | |
@@ -178,7 +178,7 b' class TestReposGroups(unittest.TestCase)' | |||||
178 | self.assertRaises(formencode.Invalid, validator.to_python, 'git') |
|
178 | self.assertRaises(formencode.Invalid, validator.to_python, 'git') | |
179 |
|
179 | |||
180 | def test_ValidPerms(self): |
|
180 | def test_ValidPerms(self): | |
181 | assert False |
|
181 | self.fail('TODO:') | |
182 |
|
182 | |||
183 | def test_ValidSettings(self): |
|
183 | def test_ValidSettings(self): | |
184 | validator = v.ValidSettings() |
|
184 | validator = v.ValidSettings() |
General Comments 0
You need to be logged in to leave comments.
Login now