Mercurial > kallithea
annotate rhodecode/tests/functional/test_changelog.py @ 3797:d7488551578e beta
synced vcs with upstream
- moved subprocessio module to VCS
- many small changes to make embedded vcs as similar to to external lib
- use only absolute imports
- patch vcs config during load pylons env
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 27 Apr 2013 11:24:25 +0200 |
parents | 6302a1423a4e |
children | 5293d4bbb1ea |
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 |
3550
7abbb77b02d0
Repo size - show just the size without duplicating text
Marcin Kuzminski <marcin@python-works.com>
parents:
2745
diff
changeset
|
11 response.mustcontain('''id="chg_20" class="container tablerow1"''') |
1895
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" """ |
3797
d7488551578e
synced vcs with upstream
Marcin Kuzminski <marcin@python-works.com>
parents:
3760
diff
changeset
|
14 """id="7b22a518347bb9bc19679f6af07cd0a61bfe16e7" """ |
d7488551578e
synced vcs with upstream
Marcin Kuzminski <marcin@python-works.com>
parents:
3760
diff
changeset
|
15 """name="7b22a518347bb9bc19679f6af07cd0a61bfe16e7" """ |
2515
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 ) |
3797
d7488551578e
synced vcs with upstream
Marcin Kuzminski <marcin@python-works.com>
parents:
3760
diff
changeset
|
18 #rev 640: code garden |
1895
b7adbd5456c2
test fixes for latest changes
Marcin Kuzminski <marcin@python-works.com>
parents:
1707
diff
changeset
|
19 response.mustcontain( |
3797
d7488551578e
synced vcs with upstream
Marcin Kuzminski <marcin@python-works.com>
parents:
3760
diff
changeset
|
20 """<span class="changeset_hash">r640:0a4e54a44604</span>""" |
1895
b7adbd5456c2
test fixes for latest changes
Marcin Kuzminski <marcin@python-works.com>
parents:
1707
diff
changeset
|
21 ) |
3797
d7488551578e
synced vcs with upstream
Marcin Kuzminski <marcin@python-works.com>
parents:
3760
diff
changeset
|
22 response.mustcontain("""code garden""") |
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
|
23 |
3557
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
24 def test_index_pagination_hg(self): |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
25 self.log_user() |
567
80dc0a23edf7
fixed whoosh failure on new repository
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
26 #pagination |
3557
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
27 self.app.get(url(controller='changelog', action='index', |
2515
623e1d68a2e0
fixed few test failures
Marcin Kuzminski <marcin@python-works.com>
parents:
1942
diff
changeset
|
28 repo_name=HG_REPO), {'page': 1}) |
3557
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
29 self.app.get(url(controller='changelog', action='index', |
2515
623e1d68a2e0
fixed few test failures
Marcin Kuzminski <marcin@python-works.com>
parents:
1942
diff
changeset
|
30 repo_name=HG_REPO), {'page': 2}) |
3557
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
31 self.app.get(url(controller='changelog', action='index', |
2515
623e1d68a2e0
fixed few test failures
Marcin Kuzminski <marcin@python-works.com>
parents:
1942
diff
changeset
|
32 repo_name=HG_REPO), {'page': 3}) |
3557
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
33 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': 4}) |
3557
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
35 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': 5}) |
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': 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 |
1895
b7adbd5456c2
test fixes for latest changes
Marcin Kuzminski <marcin@python-works.com>
parents:
1707
diff
changeset
|
40 # Test response after pagination... |
b7adbd5456c2
test fixes for latest changes
Marcin Kuzminski <marcin@python-works.com>
parents:
1707
diff
changeset
|
41 response.mustcontain( |
2515
623e1d68a2e0
fixed few test failures
Marcin Kuzminski <marcin@python-works.com>
parents:
1942
diff
changeset
|
42 """<input class="changeset_range" """ |
3797
d7488551578e
synced vcs with upstream
Marcin Kuzminski <marcin@python-works.com>
parents:
3760
diff
changeset
|
43 """id="22baf968d547386b9516965ce89d189665003a31" """ |
d7488551578e
synced vcs with upstream
Marcin Kuzminski <marcin@python-works.com>
parents:
3760
diff
changeset
|
44 """name="22baf968d547386b9516965ce89d189665003a31" """ |
2515
623e1d68a2e0
fixed few test failures
Marcin Kuzminski <marcin@python-works.com>
parents:
1942
diff
changeset
|
45 """type="checkbox" value="1" />""" |
1895
b7adbd5456c2
test fixes for latest changes
Marcin Kuzminski <marcin@python-works.com>
parents:
1707
diff
changeset
|
46 ) |
3557
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
47 |
1895
b7adbd5456c2
test fixes for latest changes
Marcin Kuzminski <marcin@python-works.com>
parents:
1707
diff
changeset
|
48 response.mustcontain( |
3797
d7488551578e
synced vcs with upstream
Marcin Kuzminski <marcin@python-works.com>
parents:
3760
diff
changeset
|
49 """<span class="changeset_hash">r539:22baf968d547</span>""" |
1895
b7adbd5456c2
test fixes for latest changes
Marcin Kuzminski <marcin@python-works.com>
parents:
1707
diff
changeset
|
50 ) |
1021 | 51 |
3557
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
52 def test_index_git(self): |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
53 self.log_user() |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
54 response = self.app.get(url(controller='changelog', action='index', |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
55 repo_name=GIT_REPO)) |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
56 |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
57 response.mustcontain('''id="chg_20" class="container tablerow1"''') |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
58 response.mustcontain( |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
59 """<input class="changeset_range" """ |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
60 """id="95f9a91d775b0084b2368ae7779e44931c849c0e" """ |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
61 """name="95f9a91d775b0084b2368ae7779e44931c849c0e" """ |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
62 """type="checkbox" value="1" />""" |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
63 ) |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
64 |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
65 response.mustcontain( |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
66 """<span class="changeset_hash">r613:95f9a91d775b</span>""" |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
67 ) |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
68 |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
69 response.mustcontain("""fixing stupid typo in context for mercurial""") |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
70 |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
71 # response.mustcontain( |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
72 # """<div id="changed_total_5e204e7583b9c8e7b93a020bd036564b1e731dae" """ |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
73 # """style="float:right;" class="changed_total tooltip" """ |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
74 # """title="Affected number of files, click to show """ |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
75 # """more details">3</div>""" |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
76 # ) |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
77 |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
78 def test_index_pagination_git(self): |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
79 self.log_user() |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
80 #pagination |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
81 self.app.get(url(controller='changelog', action='index', |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
82 repo_name=GIT_REPO), {'page': 1}) |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
83 self.app.get(url(controller='changelog', action='index', |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
84 repo_name=GIT_REPO), {'page': 2}) |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
85 self.app.get(url(controller='changelog', action='index', |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
86 repo_name=GIT_REPO), {'page': 3}) |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
87 self.app.get(url(controller='changelog', action='index', |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
88 repo_name=GIT_REPO), {'page': 4}) |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
89 self.app.get(url(controller='changelog', action='index', |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
90 repo_name=GIT_REPO), {'page': 5}) |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
91 response = self.app.get(url(controller='changelog', action='index', |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
92 repo_name=GIT_REPO), {'page': 6}) |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
93 |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
94 # Test response after pagination... |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
95 response.mustcontain( |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
96 """<input class="changeset_range" """ |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
97 """id="636ed213f2f11ef91071b9c24f2d5e6bd01a6ed5" """ |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
98 """name="636ed213f2f11ef91071b9c24f2d5e6bd01a6ed5" """ |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
99 """type="checkbox" value="1" />""" |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
100 ) |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
101 |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
102 response.mustcontain( |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
103 """<span class="changeset_hash">r515:636ed213f2f1</span>""" |
58dcef7eef03
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
Marcin Kuzminski <marcin@python-works.com>
parents:
3550
diff
changeset
|
104 ) |
3760
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
105 |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
106 def test_index_hg_with_filenode(self): |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
107 self.log_user() |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
108 response = self.app.get(url(controller='changelog', action='index', |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
109 revision='tip', f_path='/vcs/exceptions.py', |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
110 repo_name=HG_REPO)) |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
111 #history commits messages |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
112 response.mustcontain('Added exceptions module, this time for real') |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
113 response.mustcontain('Added not implemented hg backend test case') |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
114 response.mustcontain('Added BaseChangeset class') |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
115 # Test response... |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
116 |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
117 def test_index_git_with_filenode(self): |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
118 self.log_user() |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
119 response = self.app.get(url(controller='changelog', action='index', |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
120 revision='tip', f_path='/vcs/exceptions.py', |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
121 repo_name=GIT_REPO)) |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
122 #history commits messages |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
123 response.mustcontain('Added exceptions module, this time for real') |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
124 response.mustcontain('Added not implemented hg backend test case') |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
125 response.mustcontain('Added BaseChangeset class') |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
126 |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
127 def test_index_hg_with_filenode_that_is_dirnode(self): |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
128 self.log_user() |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
129 response = self.app.get(url(controller='changelog', action='index', |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
130 revision='tip', f_path='/tests', |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
131 repo_name=HG_REPO)) |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
132 self.assertEqual(response.status, '302 Found') |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
133 |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
134 def test_index_git_with_filenode_that_is_dirnode(self): |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
135 self.log_user() |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
136 response = self.app.get(url(controller='changelog', action='index', |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
137 revision='tip', f_path='/tests', |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
138 repo_name=GIT_REPO)) |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
139 self.assertEqual(response.status, '302 Found') |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
140 |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
141 def test_index_hg_with_filenode_not_existing(self): |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
142 self.log_user() |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
143 response = self.app.get(url(controller='changelog', action='index', |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
144 revision='tip', f_path='/wrong_path', |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
145 repo_name=HG_REPO)) |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
146 self.assertEqual(response.status, '302 Found') |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
147 |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
148 def test_index_git_with_filenode_not_existing(self): |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
149 self.log_user() |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
150 response = self.app.get(url(controller='changelog', action='index', |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
151 revision='tip', f_path='/wrong_path', |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
152 repo_name=GIT_REPO)) |
6302a1423a4e
Use changelog controller for displaying history of files.
Marcin Kuzminski <marcin@python-works.com>
parents:
3557
diff
changeset
|
153 self.assertEqual(response.status, '302 Found') |