##// END OF EJS Templates
docs update
docs update

File last commit:

r1707:54fda6ce beta
r1838:2ef309c3 beta
Show More
test_changelog.py
55 lines | 2.9 KiB | text/x-python | PythonLexer
renamed project to rhodecode
r547 from rhodecode.tests import *
class TestChangelogController(TestController):
Tests rewrite for 1.2 added some globals configs to make tests easier....
r688 def test_index_hg(self):
renamed project to rhodecode
r547 self.log_user()
removed users_group controller in replace for model methods,...
r1436 response = self.app.get(url(controller='changelog', action='index',
repo_name=HG_REPO))
Tests rewrite for 1.2 added some globals configs to make tests easier....
r688
removed users_group controller in replace for model methods,...
r1436 self.assertTrue("""<div id="chg_20" class="container">"""
in response.body)
self.assertTrue("""<input class="changeset_range" id="5e204e7583b9" """
"""name="5e204e7583b9" type="checkbox" value="1" />"""
in response.body)
fixes timezone issues with tests
r1707 self.assertTrue("""<span>commit 154: 5e204e7583b9@2010-08-09 """
"""23:18:46</span>""" in response.body)
removed users_group controller in replace for model methods,...
r1436 self.assertTrue("""Small update at simplevcs app""" in response.body)
fixed tests
r1021
removed users_group controller in replace for model methods,...
r1436
self.assertTrue("""<span id="5e204e7583b9c8e7b93a020bd036564b1e"""
"""731dae" class="changed_total tooltip" """
"""title="Affected number of files, click to """
"""show more details">3</span>""" in response.body)
Tests rewrite for 1.2 added some globals configs to make tests easier....
r688
fixed whoosh failure on new repository...
r567 #pagination
removed users_group controller in replace for model methods,...
r1436 response = self.app.get(url(controller='changelog', action='index',
repo_name=HG_REPO), {'page':1})
response = self.app.get(url(controller='changelog', action='index',
repo_name=HG_REPO), {'page':2})
response = self.app.get(url(controller='changelog', action='index',
repo_name=HG_REPO), {'page':3})
response = self.app.get(url(controller='changelog', action='index',
repo_name=HG_REPO), {'page':4})
response = self.app.get(url(controller='changelog', action='index',
repo_name=HG_REPO), {'page':5})
response = self.app.get(url(controller='changelog', action='index',
repo_name=HG_REPO), {'page':6})
Tests rewrite for 1.2 added some globals configs to make tests easier....
r688
fixed tests
r1021
fixed whoosh failure on new repository...
r567 # Test response after pagination...
removed users_group controller in replace for model methods,...
r1436 self.assertTrue("""<input class="changeset_range" id="46ad32a4f974" """
"""name="46ad32a4f974" type="checkbox" value="1" />"""
in response.body)
fixes timezone issues with tests
r1707 self.assertTrue("""<span>commit 64: 46ad32a4f974@2010-04-19"""
""" 22:33:21</span>"""in response.body)
removed users_group controller in replace for model methods,...
r1436
self.assertTrue("""<span id="46ad32a4f974e45472a898c6b0acb600320"""
"""579b1" class="changed_total tooltip" """
"""title="Affected number of files, click to """
"""show more details">21</span>"""in response.body)
self.assertTrue("""<div class="message"><a href="/%s/changeset/"""
"""46ad32a4f974e45472a898c6b0acb600320579b1">"""
"""Merge with 2e6a2bf9356ca56df08807f4ad86d48"""
"""0da72a8f4</a></div>""" % HG_REPO in response.body)