Mercurial > kallithea
annotate rhodecode/tests/functional/test_changelog.py @ 3169:a649599ad8b7 beta
added my gist script for another detailed installation instructions
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 18 Jan 2013 01:11:28 +0100 |
parents | fe47ff8ef3f7 |
children | 63e58ef80ef1 7abbb77b02d0 |
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 |
1895
b7adbd5456c2
test fixes for latest changes
Marcin Kuzminski <marcin@python-works.com>
parents:
1707
diff
changeset
|
3 |
93
aec4c0071cb3
added empty controllers for branches tags files graph, routing and test for them
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
4 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
|
5 |
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
|
6 def test_index_hg(self): |
473
6b934c9607e7
Improved testing scenarios. Made test env creator
Marcin Kuzminski <marcin@python-works.com>
parents:
459
diff
changeset
|
7 self.log_user() |
1436
88d13c1c6a55
removed users_group controller in replace for model methods,
Marcin Kuzminski <marcin@python-works.com>
parents:
1021
diff
changeset
|
8 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
|
9 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
|
10 |
1895
b7adbd5456c2
test fixes for latest changes
Marcin Kuzminski <marcin@python-works.com>
parents:
1707
diff
changeset
|
11 response.mustcontain("""<div id="chg_20" class="container tablerow1">""") |
b7adbd5456c2
test fixes for latest changes
Marcin Kuzminski <marcin@python-works.com>
parents:
1707
diff
changeset
|
12 response.mustcontain( |
2515
623e1d68a2e0
fixed few test failures
Marcin Kuzminski <marcin@python-works.com>
parents:
1942
diff
changeset
|
13 """<input class="changeset_range" """ |
623e1d68a2e0
fixed few test failures
Marcin Kuzminski <marcin@python-works.com>
parents:
1942
diff
changeset
|
14 """id="5e204e7583b9c8e7b93a020bd036564b1e731dae" """ |
623e1d68a2e0
fixed few test failures
Marcin Kuzminski <marcin@python-works.com>
parents:
1942
diff
changeset
|
15 """name="5e204e7583b9c8e7b93a020bd036564b1e731dae" """ |
623e1d68a2e0
fixed few test failures
Marcin Kuzminski <marcin@python-works.com>
parents:
1942
diff
changeset
|
16 """type="checkbox" value="1" />""" |
1895
b7adbd5456c2
test fixes for latest changes
Marcin Kuzminski <marcin@python-works.com>
parents:
1707
diff
changeset
|
17 ) |
b7adbd5456c2
test fixes for latest changes
Marcin Kuzminski <marcin@python-works.com>
parents:
1707
diff
changeset
|
18 response.mustcontain( |
b7adbd5456c2
test fixes for latest changes
Marcin Kuzminski <marcin@python-works.com>
parents:
1707
diff
changeset
|
19 """<span class="changeset_id">154:""" |
b7adbd5456c2
test fixes for latest changes
Marcin Kuzminski <marcin@python-works.com>
parents:
1707
diff
changeset
|
20 """<span class="changeset_hash">5e204e7583b9</span></span>""" |
b7adbd5456c2
test fixes for latest changes
Marcin Kuzminski <marcin@python-works.com>
parents:
1707
diff
changeset
|
21 ) |
1707
54fda6ce9e98
fixes timezone issues with tests
Marcin Kuzminski <marcin@python-works.com>
parents:
1548
diff
changeset
|
22 |
1895
b7adbd5456c2
test fixes for latest changes
Marcin Kuzminski <marcin@python-works.com>
parents:
1707
diff
changeset
|
23 response.mustcontain("""Small update at simplevcs app""") |
1436
88d13c1c6a55
removed users_group controller in replace for model methods,
Marcin Kuzminski <marcin@python-works.com>
parents:
1021
diff
changeset
|
24 |
1895
b7adbd5456c2
test fixes for latest changes
Marcin Kuzminski <marcin@python-works.com>
parents:
1707
diff
changeset
|
25 response.mustcontain( |
2745 | 26 """<div id="changed_total_5e204e7583b9c8e7b93a020bd036564b1e731dae" """ |
1895
b7adbd5456c2
test fixes for latest changes
Marcin Kuzminski <marcin@python-works.com>
parents:
1707
diff
changeset
|
27 """style="float:right;" class="changed_total tooltip" """ |
b7adbd5456c2
test fixes for latest changes
Marcin Kuzminski <marcin@python-works.com>
parents:
1707
diff
changeset
|
28 """title="Affected number of files, click to show """ |
b7adbd5456c2
test fixes for latest changes
Marcin Kuzminski <marcin@python-works.com>
parents:
1707
diff
changeset
|
29 """more details">3</div>""" |
b7adbd5456c2
test fixes for latest changes
Marcin Kuzminski <marcin@python-works.com>
parents:
1707
diff
changeset
|
30 ) |
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
|
31 |
567
80dc0a23edf7
fixed whoosh failure on new repository
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
32 #pagination |
1436
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', |
2515
623e1d68a2e0
fixed few test failures
Marcin Kuzminski <marcin@python-works.com>
parents:
1942
diff
changeset
|
34 repo_name=HG_REPO), {'page': 1}) |
1436
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', |
2515
623e1d68a2e0
fixed few test failures
Marcin Kuzminski <marcin@python-works.com>
parents:
1942
diff
changeset
|
36 repo_name=HG_REPO), {'page': 2}) |
1436
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', |
2515
623e1d68a2e0
fixed few test failures
Marcin Kuzminski <marcin@python-works.com>
parents:
1942
diff
changeset
|
38 repo_name=HG_REPO), {'page': 3}) |
1436
88d13c1c6a55
removed users_group controller in replace for model methods,
Marcin Kuzminski <marcin@python-works.com>
parents:
1021
diff
changeset
|
39 response = self.app.get(url(controller='changelog', action='index', |
2515
623e1d68a2e0
fixed few test failures
Marcin Kuzminski <marcin@python-works.com>
parents:
1942
diff
changeset
|
40 repo_name=HG_REPO), {'page': 4}) |
1436
88d13c1c6a55
removed users_group controller in replace for model methods,
Marcin Kuzminski <marcin@python-works.com>
parents:
1021
diff
changeset
|
41 response = self.app.get(url(controller='changelog', action='index', |
2515
623e1d68a2e0
fixed few test failures
Marcin Kuzminski <marcin@python-works.com>
parents:
1942
diff
changeset
|
42 repo_name=HG_REPO), {'page': 5}) |
1436
88d13c1c6a55
removed users_group controller in replace for model methods,
Marcin Kuzminski <marcin@python-works.com>
parents:
1021
diff
changeset
|
43 response = self.app.get(url(controller='changelog', action='index', |
2515
623e1d68a2e0
fixed few test failures
Marcin Kuzminski <marcin@python-works.com>
parents:
1942
diff
changeset
|
44 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
|
45 |
1895
b7adbd5456c2
test fixes for latest changes
Marcin Kuzminski <marcin@python-works.com>
parents:
1707
diff
changeset
|
46 # Test response after pagination... |
b7adbd5456c2
test fixes for latest changes
Marcin Kuzminski <marcin@python-works.com>
parents:
1707
diff
changeset
|
47 response.mustcontain( |
2515
623e1d68a2e0
fixed few test failures
Marcin Kuzminski <marcin@python-works.com>
parents:
1942
diff
changeset
|
48 """<input class="changeset_range" """ |
623e1d68a2e0
fixed few test failures
Marcin Kuzminski <marcin@python-works.com>
parents:
1942
diff
changeset
|
49 """id="46ad32a4f974e45472a898c6b0acb600320579b1" """ |
623e1d68a2e0
fixed few test failures
Marcin Kuzminski <marcin@python-works.com>
parents:
1942
diff
changeset
|
50 """name="46ad32a4f974e45472a898c6b0acb600320579b1" """ |
623e1d68a2e0
fixed few test failures
Marcin Kuzminski <marcin@python-works.com>
parents:
1942
diff
changeset
|
51 """type="checkbox" value="1" />""" |
1895
b7adbd5456c2
test fixes for latest changes
Marcin Kuzminski <marcin@python-works.com>
parents:
1707
diff
changeset
|
52 ) |
b7adbd5456c2
test fixes for latest changes
Marcin Kuzminski <marcin@python-works.com>
parents:
1707
diff
changeset
|
53 response.mustcontain( |
b7adbd5456c2
test fixes for latest changes
Marcin Kuzminski <marcin@python-works.com>
parents:
1707
diff
changeset
|
54 """<span class="changeset_id">64:""" |
b7adbd5456c2
test fixes for latest changes
Marcin Kuzminski <marcin@python-works.com>
parents:
1707
diff
changeset
|
55 """<span class="changeset_hash">46ad32a4f974</span></span>""" |
b7adbd5456c2
test fixes for latest changes
Marcin Kuzminski <marcin@python-works.com>
parents:
1707
diff
changeset
|
56 ) |
1021 | 57 |
1895
b7adbd5456c2
test fixes for latest changes
Marcin Kuzminski <marcin@python-works.com>
parents:
1707
diff
changeset
|
58 response.mustcontain( |
2745 | 59 """<div id="changed_total_46ad32a4f974e45472a898c6b0acb600320579b1" """ |
1895
b7adbd5456c2
test fixes for latest changes
Marcin Kuzminski <marcin@python-works.com>
parents:
1707
diff
changeset
|
60 """style="float:right;" class="changed_total tooltip" """ |
b7adbd5456c2
test fixes for latest changes
Marcin Kuzminski <marcin@python-works.com>
parents:
1707
diff
changeset
|
61 """title="Affected number of files, click to show """ |
b7adbd5456c2
test fixes for latest changes
Marcin Kuzminski <marcin@python-works.com>
parents:
1707
diff
changeset
|
62 """more details">21</div>""" |
b7adbd5456c2
test fixes for latest changes
Marcin Kuzminski <marcin@python-works.com>
parents:
1707
diff
changeset
|
63 ) |
1436
88d13c1c6a55
removed users_group controller in replace for model methods,
Marcin Kuzminski <marcin@python-works.com>
parents:
1021
diff
changeset
|
64 |
1942
c59cc8231f3c
fixed changelog test
Marcin Kuzminski <marcin@python-works.com>
parents:
1895
diff
changeset
|
65 response.mustcontain( |
c59cc8231f3c
fixed changelog test
Marcin Kuzminski <marcin@python-works.com>
parents:
1895
diff
changeset
|
66 """<a href="/%s/changeset/""" |
c59cc8231f3c
fixed changelog test
Marcin Kuzminski <marcin@python-works.com>
parents:
1895
diff
changeset
|
67 """46ad32a4f974e45472a898c6b0acb600320579b1" """ |
c59cc8231f3c
fixed changelog test
Marcin Kuzminski <marcin@python-works.com>
parents:
1895
diff
changeset
|
68 """title="Merge with 2e6a2bf9356ca56df08807f4ad86d480da72a8f4">""" |
c59cc8231f3c
fixed changelog test
Marcin Kuzminski <marcin@python-works.com>
parents:
1895
diff
changeset
|
69 """46ad32a4f974</a>""" % HG_REPO |
c59cc8231f3c
fixed changelog test
Marcin Kuzminski <marcin@python-works.com>
parents:
1895
diff
changeset
|
70 ) |