diff --git a/rhodecode/tests/functional/test_files.py b/rhodecode/tests/functional/test_files.py --- a/rhodecode/tests/functional/test_files.py +++ b/rhodecode/tests/functional/test_files.py @@ -73,6 +73,22 @@ class TestFilesController(TestController revision='27cd5cce30c96924232dffcd24178a07ffeb5dfc', f_path='vcs/nodes.py')) + response.mustcontain("""
Partially implemented #16. filecontent/commit message/author/node name are safe_unicode now. +In addition some other __str__ are unicode as well +Added test for unicode +Improved test to clone into uniq repository. +removed extra unicode conversion in diff.
+""") + + response.mustcontain("""branch: default""") + + def test_file_source_history(self): + self.log_user() + response = self.app.get(url(controller='files', action='history', + repo_name=HG_REPO, + revision='27cd5cce30c96924232dffcd24178a07ffeb5dfc', + f_path='vcs/nodes.py'), + extra_environ={'HTTP_X_PARTIAL_XHR': '1'},) #test or history response.mustcontain(""" @@ -123,15 +139,6 @@ class TestFilesController(TestController """) - response.mustcontain("""
Partially implemented #16. filecontent/commit message/author/node name are safe_unicode now. -In addition some other __str__ are unicode as well -Added test for unicode -Improved test to clone into uniq repository. -removed extra unicode conversion in diff.
-""") - - response.mustcontain("""branch: default""") - def test_file_annotation(self): self.log_user() response = self.app.get(url(controller='files', action='index', @@ -140,6 +147,16 @@ removed extra unicode conversion in diff f_path='vcs/nodes.py', annotate=True)) + response.mustcontain("""branch: default""") + + def test_file_annotation_history(self): + self.log_user() + response = self.app.get(url(controller='files', action='history', + repo_name=HG_REPO, + revision='27cd5cce30c96924232dffcd24178a07ffeb5dfc', + f_path='vcs/nodes.py', + annotate=True), + extra_environ={'HTTP_X_PARTIAL_XHR': '1'}) response.mustcontain(""" @@ -189,8 +206,6 @@ removed extra unicode conversion in diff """) - response.mustcontain("""branch: default""") - def test_file_annotation_git(self): self.log_user() response = self.app.get(url(controller='files', action='index',