Show More
@@ -1,5 +1,6 b'' | |||
|
1 | 1 | from rhodecode.tests import * |
|
2 | 2 | |
|
3 | ||
|
3 | 4 | class TestChangelogController(TestController): |
|
4 | 5 | |
|
5 | 6 | def test_index_hg(self): |
@@ -7,21 +8,24 b' class TestChangelogController(TestContro' | |||
|
7 | 8 | response = self.app.get(url(controller='changelog', action='index', |
|
8 | 9 | repo_name=HG_REPO)) |
|
9 | 10 | |
|
10 |
se |
|
|
11 | in response.body) | |
|
12 |
|
|
|
13 |
|
|
|
14 | in response.body) | |
|
15 | self.assertTrue("""<span>commit 154: 5e204e7583b9@2010-08-09 """ | |
|
16 | """23:18:46</span>""" in response.body) | |
|
11 | response.mustcontain("""<div id="chg_20" class="container tablerow1">""") | |
|
12 | response.mustcontain( | |
|
13 | """<input class="changeset_range" id="5e204e7583b9" """ | |
|
14 | """name="5e204e7583b9" type="checkbox" value="1" />""" | |
|
15 | ) | |
|
16 | response.mustcontain( | |
|
17 | """<span class="changeset_id">154:""" | |
|
18 | """<span class="changeset_hash">5e204e7583b9</span></span>""" | |
|
19 | ) | |
|
17 | 20 | |
|
18 |
se |
|
|
19 | ||
|
21 | response.mustcontain("""Small update at simplevcs app""") | |
|
20 | 22 | |
|
21 | self.assertTrue("""<span id="5e204e7583b9c8e7b93a020bd036564b1e""" | |
|
22 | """731dae" class="changed_total tooltip" """ | |
|
23 | """title="Affected number of files, click to """ | |
|
24 | """show more details">3</span>""" in response.body) | |
|
23 | response.mustcontain( | |
|
24 | """<div id="5e204e7583b9c8e7b93a020bd036564b1e731dae" """ | |
|
25 | """style="float:right;" class="changed_total tooltip" """ | |
|
26 | """title="Affected number of files, click to show """ | |
|
27 | """more details">3</div>""" | |
|
28 | ) | |
|
25 | 29 | |
|
26 | 30 | #pagination |
|
27 | 31 | response = self.app.get(url(controller='changelog', action='index', |
@@ -37,19 +41,24 b' class TestChangelogController(TestContro' | |||
|
37 | 41 | response = self.app.get(url(controller='changelog', action='index', |
|
38 | 42 | repo_name=HG_REPO), {'page':6}) |
|
39 | 43 | |
|
44 | # Test response after pagination... | |
|
45 | response.mustcontain( | |
|
46 | """<input class="changeset_range" id="46ad32a4f974" """ | |
|
47 | """name="46ad32a4f974" type="checkbox" value="1" />""" | |
|
48 | ) | |
|
49 | response.mustcontain( | |
|
50 | """<span class="changeset_id">64:""" | |
|
51 | """<span class="changeset_hash">46ad32a4f974</span></span>""" | |
|
52 | ) | |
|
40 | 53 | |
|
41 | # Test response after pagination... | |
|
42 | self.assertTrue("""<input class="changeset_range" id="46ad32a4f974" """ | |
|
43 | """name="46ad32a4f974" type="checkbox" value="1" />""" | |
|
44 | in response.body) | |
|
45 | self.assertTrue("""<span>commit 64: 46ad32a4f974@2010-04-19""" | |
|
46 | """ 22:33:21</span>"""in response.body) | |
|
54 | response.mustcontain( | |
|
55 | """<div id="46ad32a4f974e45472a898c6b0acb600320579b1" """ | |
|
56 | """style="float:right;" class="changed_total tooltip" """ | |
|
57 | """title="Affected number of files, click to show """ | |
|
58 | """more details">21</div>""" | |
|
59 | ) | |
|
47 | 60 | |
|
48 | self.assertTrue("""<span id="46ad32a4f974e45472a898c6b0acb600320""" | |
|
49 | """579b1" class="changed_total tooltip" """ | |
|
50 | """title="Affected number of files, click to """ | |
|
51 | """show more details">21</span>"""in response.body) | |
|
52 | self.assertTrue("""<div class="message"><a href="/%s/changeset/""" | |
|
61 | response.mustcontain("""<div class="message"><a href="/%s/changeset/""" | |
|
53 | 62 | """46ad32a4f974e45472a898c6b0acb600320579b1">""" |
|
54 | 63 | """Merge with 2e6a2bf9356ca56df08807f4ad86d48""" |
|
55 |
"""0da72a8f4</a></div>""" % HG_REPO |
|
|
64 | """0da72a8f4</a></div>""" % HG_REPO) |
@@ -13,12 +13,16 b' class TestSummaryController(TestControll' | |||
|
13 | 13 | repo_name=HG_REPO)) |
|
14 | 14 | |
|
15 | 15 | #repo type |
|
16 | response.mustcontain("""<img style="margin-bottom:2px" class="icon" """ | |
|
17 | """title="Mercurial repository" alt="Mercurial """ | |
|
18 | """repository" src="/images/icons/hgicon.png"/>""") | |
|
19 | response.mustcontain("""<img style="margin-bottom:2px" class="icon" """ | |
|
20 | """title="public repository" alt="public """ | |
|
21 | """repository" src="/images/icons/lock_open.png"/>""") | |
|
16 | response.mustcontain( | |
|
17 | """<img style="margin-bottom:2px" class="icon" """ | |
|
18 | """title="Mercurial repository" alt="Mercurial """ | |
|
19 | """repository" src="/images/icons/hgicon.png"/>""" | |
|
20 | ) | |
|
21 | response.mustcontain( | |
|
22 | """<img style="margin-bottom:2px" class="icon" """ | |
|
23 | """title="public repository" alt="public """ | |
|
24 | """repository" src="/images/icons/lock_open.png"/>""" | |
|
25 | ) | |
|
22 | 26 | |
|
23 | 27 | #codes stats |
|
24 | 28 | self._enable_stats() |
@@ -26,15 +30,15 b' class TestSummaryController(TestControll' | |||
|
26 | 30 | invalidate_cache('get_repo_cached_%s' % HG_REPO) |
|
27 | 31 | response = self.app.get(url(controller='summary', action='index', |
|
28 | 32 | repo_name=HG_REPO)) |
|
29 | ||
|
30 |
|
|
|
31 |
|
|
|
32 |
|
|
|
33 |
|
|
|
34 |
|
|
|
35 |
|
|
|
36 |
|
|
|
37 | in response.body) | |
|
33 | response.mustcontain( | |
|
34 | """var data = [["py", {"count": 42, "desc": ["Python"]}], """ | |
|
35 | """["rst", {"count": 11, "desc": ["Rst"]}], """ | |
|
36 | """["sh", {"count": 2, "desc": ["Bash"]}], """ | |
|
37 | """["makefile", {"count": 1, "desc": ["Makefile", "Makefile"]}],""" | |
|
38 | """ ["cfg", {"count": 1, "desc": ["Ini"]}], """ | |
|
39 | """["css", {"count": 1, "desc": ["Css"]}], """ | |
|
40 | """["bat", {"count": 1, "desc": ["Batch"]}]];""" | |
|
41 | ) | |
|
38 | 42 | |
|
39 | 43 | # clone url... |
|
40 | 44 | response.mustcontain("""<input style="width:80%;margin-left:105px" type="text" id="clone_url" readonly="readonly" value="http://test_admin@localhost:80/vcs_test_hg"/>""") |
General Comments 0
You need to be logged in to leave comments.
Login now