Mercurial > kallithea
annotate rhodecode/tests/functional/test_changelog.py @ 1756:60a00fd76d58 beta
UI !
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 05 Dec 2011 03:31:23 +0200 |
parents | 54fda6ce9e98 |
children | b7adbd5456c2 |
rev | line source |
---|---|
547
1e757ac98988
renamed project to rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
473
diff
changeset
|
1 from rhodecode.tests import * |
93
aec4c0071cb3
added empty controllers for branches tags files graph, routing and test for them
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
2 |
aec4c0071cb3
added empty controllers for branches tags files graph, routing and test for them
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
3 class TestChangelogController(TestController): |
aec4c0071cb3
added empty controllers for branches tags files graph, routing and test for them
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
4 |
688
8acbfa837180
Tests rewrite for 1.2 added some globals configs to make tests easier.
Marcin Kuzminski <marcin@python-works.com>
parents:
567
diff
changeset
|
5 def test_index_hg(self): |
473
6b934c9607e7
Improved testing scenarios. Made test env creator
Marcin Kuzminski <marcin@python-works.com>
parents:
459
diff
changeset
|
6 self.log_user() |
1436
88d13c1c6a55
removed users_group controller in replace for model methods,
Marcin Kuzminski <marcin@python-works.com>
parents:
1021
diff
changeset
|
7 response = self.app.get(url(controller='changelog', action='index', |
88d13c1c6a55
removed users_group controller in replace for model methods,
Marcin Kuzminski <marcin@python-works.com>
parents:
1021
diff
changeset
|
8 repo_name=HG_REPO)) |
688
8acbfa837180
Tests rewrite for 1.2 added some globals configs to make tests easier.
Marcin Kuzminski <marcin@python-works.com>
parents:
567
diff
changeset
|
9 |
1436
88d13c1c6a55
removed users_group controller in replace for model methods,
Marcin Kuzminski <marcin@python-works.com>
parents:
1021
diff
changeset
|
10 self.assertTrue("""<div id="chg_20" class="container">""" |
88d13c1c6a55
removed users_group controller in replace for model methods,
Marcin Kuzminski <marcin@python-works.com>
parents:
1021
diff
changeset
|
11 in response.body) |
88d13c1c6a55
removed users_group controller in replace for model methods,
Marcin Kuzminski <marcin@python-works.com>
parents:
1021
diff
changeset
|
12 self.assertTrue("""<input class="changeset_range" id="5e204e7583b9" """ |
88d13c1c6a55
removed users_group controller in replace for model methods,
Marcin Kuzminski <marcin@python-works.com>
parents:
1021
diff
changeset
|
13 """name="5e204e7583b9" type="checkbox" value="1" />""" |
88d13c1c6a55
removed users_group controller in replace for model methods,
Marcin Kuzminski <marcin@python-works.com>
parents:
1021
diff
changeset
|
14 in response.body) |
1707
54fda6ce9e98
fixes timezone issues with tests
Marcin Kuzminski <marcin@python-works.com>
parents:
1548
diff
changeset
|
15 self.assertTrue("""<span>commit 154: 5e204e7583b9@2010-08-09 """ |
54fda6ce9e98
fixes timezone issues with tests
Marcin Kuzminski <marcin@python-works.com>
parents:
1548
diff
changeset
|
16 """23:18:46</span>""" in response.body) |
54fda6ce9e98
fixes timezone issues with tests
Marcin Kuzminski <marcin@python-works.com>
parents:
1548
diff
changeset
|
17 |
1436
88d13c1c6a55
removed users_group controller in replace for model methods,
Marcin Kuzminski <marcin@python-works.com>
parents:
1021
diff
changeset
|
18 self.assertTrue("""Small update at simplevcs app""" in response.body) |
1021 | 19 |
1436
88d13c1c6a55
removed users_group controller in replace for model methods,
Marcin Kuzminski <marcin@python-works.com>
parents:
1021
diff
changeset
|
20 |
88d13c1c6a55
removed users_group controller in replace for model methods,
Marcin Kuzminski <marcin@python-works.com>
parents:
1021
diff
changeset
|
21 self.assertTrue("""<span id="5e204e7583b9c8e7b93a020bd036564b1e""" |
88d13c1c6a55
removed users_group controller in replace for model methods,
Marcin Kuzminski <marcin@python-works.com>
parents:
1021
diff
changeset
|
22 """731dae" class="changed_total tooltip" """ |
88d13c1c6a55
removed users_group controller in replace for model methods,
Marcin Kuzminski <marcin@python-works.com>
parents:
1021
diff
changeset
|
23 """title="Affected number of files, click to """ |
88d13c1c6a55
removed users_group controller in replace for model methods,
Marcin Kuzminski <marcin@python-works.com>
parents:
1021
diff
changeset
|
24 """show more details">3</span>""" in response.body) |
688
8acbfa837180
Tests rewrite for 1.2 added some globals configs to make tests easier.
Marcin Kuzminski <marcin@python-works.com>
parents:
567
diff
changeset
|
25 |
567
80dc0a23edf7
fixed whoosh failure on new repository
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
26 #pagination |
1436
88d13c1c6a55
removed users_group controller in replace for model methods,
Marcin Kuzminski <marcin@python-works.com>
parents:
1021
diff
changeset
|
27 response = self.app.get(url(controller='changelog', action='index', |
88d13c1c6a55
removed users_group controller in replace for model methods,
Marcin Kuzminski <marcin@python-works.com>
parents:
1021
diff
changeset
|
28 repo_name=HG_REPO), {'page':1}) |
88d13c1c6a55
removed users_group controller in replace for model methods,
Marcin Kuzminski <marcin@python-works.com>
parents:
1021
diff
changeset
|
29 response = self.app.get(url(controller='changelog', action='index', |
88d13c1c6a55
removed users_group controller in replace for model methods,
Marcin Kuzminski <marcin@python-works.com>
parents:
1021
diff
changeset
|
30 repo_name=HG_REPO), {'page':2}) |
88d13c1c6a55
removed users_group controller in replace for model methods,
Marcin Kuzminski <marcin@python-works.com>
parents:
1021
diff
changeset
|
31 response = self.app.get(url(controller='changelog', action='index', |
88d13c1c6a55
removed users_group controller in replace for model methods,
Marcin Kuzminski <marcin@python-works.com>
parents:
1021
diff
changeset
|
32 repo_name=HG_REPO), {'page':3}) |
88d13c1c6a55
removed users_group controller in replace for model methods,
Marcin Kuzminski <marcin@python-works.com>
parents:
1021
diff
changeset
|
33 response = self.app.get(url(controller='changelog', action='index', |
88d13c1c6a55
removed users_group controller in replace for model methods,
Marcin Kuzminski <marcin@python-works.com>
parents:
1021
diff
changeset
|
34 repo_name=HG_REPO), {'page':4}) |
88d13c1c6a55
removed users_group controller in replace for model methods,
Marcin Kuzminski <marcin@python-works.com>
parents:
1021
diff
changeset
|
35 response = self.app.get(url(controller='changelog', action='index', |
88d13c1c6a55
removed users_group controller in replace for model methods,
Marcin Kuzminski <marcin@python-works.com>
parents:
1021
diff
changeset
|
36 repo_name=HG_REPO), {'page':5}) |
88d13c1c6a55
removed users_group controller in replace for model methods,
Marcin Kuzminski <marcin@python-works.com>
parents:
1021
diff
changeset
|
37 response = self.app.get(url(controller='changelog', action='index', |
88d13c1c6a55
removed users_group controller in replace for model methods,
Marcin Kuzminski <marcin@python-works.com>
parents:
1021
diff
changeset
|
38 repo_name=HG_REPO), {'page':6}) |
688
8acbfa837180
Tests rewrite for 1.2 added some globals configs to make tests easier.
Marcin Kuzminski <marcin@python-works.com>
parents:
567
diff
changeset
|
39 |
1021 | 40 |
567
80dc0a23edf7
fixed whoosh failure on new repository
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
41 # Test response after pagination... |
1436
88d13c1c6a55
removed users_group controller in replace for model methods,
Marcin Kuzminski <marcin@python-works.com>
parents:
1021
diff
changeset
|
42 self.assertTrue("""<input class="changeset_range" id="46ad32a4f974" """ |
88d13c1c6a55
removed users_group controller in replace for model methods,
Marcin Kuzminski <marcin@python-works.com>
parents:
1021
diff
changeset
|
43 """name="46ad32a4f974" type="checkbox" value="1" />""" |
88d13c1c6a55
removed users_group controller in replace for model methods,
Marcin Kuzminski <marcin@python-works.com>
parents:
1021
diff
changeset
|
44 in response.body) |
1707
54fda6ce9e98
fixes timezone issues with tests
Marcin Kuzminski <marcin@python-works.com>
parents:
1548
diff
changeset
|
45 self.assertTrue("""<span>commit 64: 46ad32a4f974@2010-04-19""" |
54fda6ce9e98
fixes timezone issues with tests
Marcin Kuzminski <marcin@python-works.com>
parents:
1548
diff
changeset
|
46 """ 22:33:21</span>"""in response.body) |
1436
88d13c1c6a55
removed users_group controller in replace for model methods,
Marcin Kuzminski <marcin@python-works.com>
parents:
1021
diff
changeset
|
47 |
88d13c1c6a55
removed users_group controller in replace for model methods,
Marcin Kuzminski <marcin@python-works.com>
parents:
1021
diff
changeset
|
48 self.assertTrue("""<span id="46ad32a4f974e45472a898c6b0acb600320""" |
88d13c1c6a55
removed users_group controller in replace for model methods,
Marcin Kuzminski <marcin@python-works.com>
parents:
1021
diff
changeset
|
49 """579b1" class="changed_total tooltip" """ |
88d13c1c6a55
removed users_group controller in replace for model methods,
Marcin Kuzminski <marcin@python-works.com>
parents:
1021
diff
changeset
|
50 """title="Affected number of files, click to """ |
88d13c1c6a55
removed users_group controller in replace for model methods,
Marcin Kuzminski <marcin@python-works.com>
parents:
1021
diff
changeset
|
51 """show more details">21</span>"""in response.body) |
88d13c1c6a55
removed users_group controller in replace for model methods,
Marcin Kuzminski <marcin@python-works.com>
parents:
1021
diff
changeset
|
52 self.assertTrue("""<div class="message"><a href="/%s/changeset/""" |
88d13c1c6a55
removed users_group controller in replace for model methods,
Marcin Kuzminski <marcin@python-works.com>
parents:
1021
diff
changeset
|
53 """46ad32a4f974e45472a898c6b0acb600320579b1">""" |
88d13c1c6a55
removed users_group controller in replace for model methods,
Marcin Kuzminski <marcin@python-works.com>
parents:
1021
diff
changeset
|
54 """Merge with 2e6a2bf9356ca56df08807f4ad86d48""" |
88d13c1c6a55
removed users_group controller in replace for model methods,
Marcin Kuzminski <marcin@python-works.com>
parents:
1021
diff
changeset
|
55 """0da72a8f4</a></div>""" % HG_REPO in response.body) |