comparison 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
comparison
equal deleted inserted replaced
3796:2b5f94fc3b7a 3797:d7488551578e
9 repo_name=HG_REPO)) 9 repo_name=HG_REPO))
10 10
11 response.mustcontain('''id="chg_20" class="container tablerow1"''') 11 response.mustcontain('''id="chg_20" class="container tablerow1"''')
12 response.mustcontain( 12 response.mustcontain(
13 """<input class="changeset_range" """ 13 """<input class="changeset_range" """
14 """id="5e204e7583b9c8e7b93a020bd036564b1e731dae" """ 14 """id="7b22a518347bb9bc19679f6af07cd0a61bfe16e7" """
15 """name="5e204e7583b9c8e7b93a020bd036564b1e731dae" """ 15 """name="7b22a518347bb9bc19679f6af07cd0a61bfe16e7" """
16 """type="checkbox" value="1" />""" 16 """type="checkbox" value="1" />"""
17 ) 17 )
18 18 #rev 640: code garden
19 response.mustcontain( 19 response.mustcontain(
20 """<span class="changeset_hash">r154:5e204e7583b9</span>""" 20 """<span class="changeset_hash">r640:0a4e54a44604</span>"""
21 ) 21 )
22 22 response.mustcontain("""code garden""")
23 response.mustcontain("""Small update at simplevcs app""")
24
25 # response.mustcontain(
26 # """<div id="changed_total_5e204e7583b9c8e7b93a020bd036564b1e731dae" """
27 # """style="float:right;" class="changed_total tooltip" """
28 # """title="Affected number of files, click to show """
29 # """more details">3</div>"""
30 # )
31 23
32 def test_index_pagination_hg(self): 24 def test_index_pagination_hg(self):
33 self.log_user() 25 self.log_user()
34 #pagination 26 #pagination
35 self.app.get(url(controller='changelog', action='index', 27 self.app.get(url(controller='changelog', action='index',
46 repo_name=HG_REPO), {'page': 6}) 38 repo_name=HG_REPO), {'page': 6})
47 39
48 # Test response after pagination... 40 # Test response after pagination...
49 response.mustcontain( 41 response.mustcontain(
50 """<input class="changeset_range" """ 42 """<input class="changeset_range" """
51 """id="46ad32a4f974e45472a898c6b0acb600320579b1" """ 43 """id="22baf968d547386b9516965ce89d189665003a31" """
52 """name="46ad32a4f974e45472a898c6b0acb600320579b1" """ 44 """name="22baf968d547386b9516965ce89d189665003a31" """
53 """type="checkbox" value="1" />""" 45 """type="checkbox" value="1" />"""
54 ) 46 )
55 47
56 response.mustcontain( 48 response.mustcontain(
57 """<span class="changeset_hash">r64:46ad32a4f974</span>""" 49 """<span class="changeset_hash">r539:22baf968d547</span>"""
58 ) 50 )
59
60 # response.mustcontain(
61 # """<div id="changed_total_46ad32a4f974e45472a898c6b0acb600320579b1" """
62 # """style="float:right;" class="changed_total tooltip" """
63 # """title="Affected number of files, click to show """
64 # """more details">21</div>"""
65 # )
66 #
67 # response.mustcontain(
68 # """<a href="/%s/changeset/"""
69 # """46ad32a4f974e45472a898c6b0acb600320579b1" """
70 # """title="Merge with 2e6a2bf9356ca56df08807f4ad86d480da72a8f4">"""
71 # """46ad32a4f974</a>""" % HG_REPO
72 # )
73 51
74 def test_index_git(self): 52 def test_index_git(self):
75 self.log_user() 53 self.log_user()
76 response = self.app.get(url(controller='changelog', action='index', 54 response = self.app.get(url(controller='changelog', action='index',
77 repo_name=GIT_REPO)) 55 repo_name=GIT_REPO))