Files
@ 000653f7cdf9
Branch filter:
Location: kallithea/rhodecode/tests/functional/test_shortlog.py - annotation
000653f7cdf9
2.9 KiB
text/x-python
avoid displaying repr of internal classes in user facing messages
The context of the message will tell where the problem was and there is no reason to show
... does not exist for this repository <MercurialRepository at /home/marcink/repos/rhodecode>
The context of the message will tell where the problem was and there is no reason to show
... does not exist for this repository <MercurialRepository at /home/marcink/repos/rhodecode>
1e757ac98988 1e757ac98988 a520d542697e 1e757ac98988 1e757ac98988 a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e 1e757ac98988 a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e a520d542697e | from rhodecode.tests import *
class TestShortlogController(TestController):
def test_index_hg(self):
self.log_user()
response = self.app.get(url(controller='shortlog', action='index',
repo_name=HG_REPO))
# Test response...
def test_index_git(self):
self.log_user()
response = self.app.get(url(controller='shortlog', action='index',
repo_name=GIT_REPO))
# Test response...
def test_index_hg_with_filenode(self):
self.log_user()
response = self.app.get(url(controller='shortlog', action='index',
revision='tip', f_path='/vcs/exceptions.py',
repo_name=HG_REPO))
#history commits messages
response.mustcontain('Added exceptions module, this time for real')
response.mustcontain('Added not implemented hg backend test case')
response.mustcontain('Added BaseChangeset class')
# Test response...
def test_index_git_with_filenode(self):
self.log_user()
response = self.app.get(url(controller='shortlog', action='index',
revision='tip', f_path='/vcs/exceptions.py',
repo_name=GIT_REPO))
#history commits messages
response.mustcontain('Added exceptions module, this time for real')
response.mustcontain('Added not implemented hg backend test case')
response.mustcontain('Added BaseChangeset class')
def test_index_hg_with_filenode_that_is_dirnode(self):
self.log_user()
response = self.app.get(url(controller='shortlog', action='index',
revision='tip', f_path='/tests',
repo_name=HG_REPO))
self.assertEqual(response.status, '302 Found')
def test_index_git_with_filenode_that_is_dirnode(self):
self.log_user()
response = self.app.get(url(controller='shortlog', action='index',
revision='tip', f_path='/tests',
repo_name=GIT_REPO))
self.assertEqual(response.status, '302 Found')
def test_index_hg_with_filenode_not_existing(self):
self.log_user()
response = self.app.get(url(controller='shortlog', action='index',
revision='tip', f_path='/wrong_path',
repo_name=HG_REPO))
self.assertEqual(response.status, '302 Found')
def test_index_git_with_filenode_not_existing(self):
self.log_user()
response = self.app.get(url(controller='shortlog', action='index',
revision='tip', f_path='/wrong_path',
repo_name=GIT_REPO))
self.assertEqual(response.status, '302 Found')
|