diff --git a/rhodecode/tests/functional/test_summary.py b/rhodecode/tests/functional/test_summary.py
--- a/rhodecode/tests/functional/test_summary.py
+++ b/rhodecode/tests/functional/test_summary.py
@@ -15,8 +15,8 @@ class TestSummaryController(TestControll
#repo type
response.mustcontain(
"""
"""
+ """title="Mercurial repository" alt="Mercurial repository" """
+ """src="/images/icons/hgicon.png"/>"""
)
response.mustcontain(
"""
""")
- response.mustcontain("""""")
+ response.mustcontain("""""" % HG_REPO)
+ response.mustcontain("""""" % ID)
+
+ def test_index_git(self):
+ self.log_user()
+ ID = Repository.get_by_repo_name(GIT_REPO).repo_id
+ response = self.app.get(url(controller='summary',
+ action='index',
+ repo_name=GIT_REPO))
- def test_index_by_id(self):
+ #repo type
+ response.mustcontain(
+ """
"""
+ )
+ response.mustcontain(
+ """
"""
+ )
+
+ # clone url...
+ response.mustcontain("""""" % GIT_REPO)
+ response.mustcontain("""""" % ID)
+
+ def test_index_by_id_hg(self):
self.log_user()
ID = Repository.get_by_repo_name(HG_REPO).repo_id
response = self.app.get(url(controller='summary',
@@ -59,6 +82,21 @@ class TestSummaryController(TestControll
"""title="public repository" alt="public """
"""repository" src="/images/icons/lock_open.png"/>""")
+ def test_index_by_id_git(self):
+ self.log_user()
+ ID = Repository.get_by_repo_name(GIT_REPO).repo_id
+ response = self.app.get(url(controller='summary',
+ action='index',
+ repo_name='_%s' % ID))
+
+ #repo type
+ response.mustcontain("""
""")
+ response.mustcontain("""
""")
+
def _enable_stats(self):
r = Repository.get_by_repo_name(HG_REPO)
r.enable_statistics = True