##// END OF EJS Templates
fixed repo_create permission by adding missing commit statements...
fixed repo_create permission by adding missing commit statements - added few tests for checking permission in UserModel - added __json__() into get_dict() to fetch from it hybrid_properties and any additional custom properties - code garden

File last commit:

r1723:64e91067 beta
r1758:a87aa385 beta
Show More
test_branches.py
18 lines | 663 B | text/x-python | PythonLexer
renamed project to rhodecode
r547 from rhodecode.tests import *
class TestBranchesController(TestController):
def test_index(self):
self.log_user()
- refactoring to overcome poor usage of global pylons config...
r1723 response = self.app.get(url(controller='branches',
action='index', repo_name=HG_REPO))
Tests rewrite for 1.2 added some globals configs to make tests easier....
r688
- refactoring to overcome poor usage of global pylons config...
r1723 self.assertTrue("""<a href="/%s/changeset/27cd5cce30c96924232dffcd24178a07ffeb5dfc">default</a>""" % HG_REPO in response.body)
self.assertTrue("""<a href="/%s/changeset/97e8b885c04894463c51898e14387d80c30ed1ee">git</a>""" % HG_REPO in response.body)
self.assertTrue("""<a href="/%s/changeset/2e6a2bf9356ca56df08807f4ad86d480da72a8f4">web</a>""" % HG_REPO in response.body)
Tests rewrite for 1.2 added some globals configs to make tests easier....
r688