comparison rhodecode/tests/functional/test_summary.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 6843cabe9925
children 5293d4bbb1ea
comparison
equal deleted inserted replaced
3796:2b5f94fc3b7a 3797:d7488551578e
34 34
35 ScmModel().mark_for_invalidation(HG_REPO) 35 ScmModel().mark_for_invalidation(HG_REPO)
36 response = self.app.get(url(controller='summary', action='index', 36 response = self.app.get(url(controller='summary', action='index',
37 repo_name=HG_REPO)) 37 repo_name=HG_REPO))
38 response.mustcontain( 38 response.mustcontain(
39 """var data = [["py", {"count": 42, "desc": ["Python"]}], """ 39 """var data = [["py", {"count": 68, "desc": ["Python"]}], """
40 """["rst", {"count": 11, "desc": ["Rst"]}], """ 40 """["rst", {"count": 16, "desc": ["Rst"]}], """
41 """["css", {"count": 2, "desc": ["Css"]}], """
41 """["sh", {"count": 2, "desc": ["Bash"]}], """ 42 """["sh", {"count": 2, "desc": ["Bash"]}], """
42 """["makefile", {"count": 1, "desc": ["Makefile", "Makefile"]}],""" 43 """["yml", {"count": 1, "desc": ["Yaml"]}], """
43 """ ["cfg", {"count": 1, "desc": ["Ini"]}], """ 44 """["makefile", {"count": 1, "desc": ["Makefile", "Makefile"]}], """
44 """["css", {"count": 1, "desc": ["Css"]}], """ 45 """["js", {"count": 1, "desc": ["Javascript"]}], """
45 """["bat", {"count": 1, "desc": ["Batch"]}]];""" 46 """["cfg", {"count": 1, "desc": ["Ini"]}], """
47 """["ini", {"count": 1, "desc": ["Ini"]}], """
48 """["html", {"count": 1, "desc": ["EvoqueHtml", "Html"]}]];"""
46 ) 49 )
47 50
48 # clone url... 51 # clone url...
49 response.mustcontain('''id="clone_url" readonly="readonly" value="http://test_admin@localhost:80/%s"''' % HG_REPO) 52 response.mustcontain('''id="clone_url" readonly="readonly" value="http://test_admin@localhost:80/%s"''' % HG_REPO)
50 response.mustcontain('''id="clone_url_id" readonly="readonly" value="http://test_admin@localhost:80/_%s"''' % ID) 53 response.mustcontain('''id="clone_url_id" readonly="readonly" value="http://test_admin@localhost:80/_%s"''' % ID)
116 """repository" src="/images/icons/lock_open.png"/>""") 119 """repository" src="/images/icons/lock_open.png"/>""")
117 120
118 def _enable_stats(self): 121 def _enable_stats(self):
119 r = Repository.get_by_repo_name(HG_REPO) 122 r = Repository.get_by_repo_name(HG_REPO)
120 r.enable_statistics = True 123 r.enable_statistics = True
121 self.Session.add(r) 124 Session().add(r)
122 self.Session.commit() 125 Session().commit()