You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2012/09/19 20:43:27 UTC

[35/50] git commit: [#1968] ticket:159 fix comments in tests

[#1968] ticket:159 fix comments in tests


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/7cc366fd
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/7cc366fd
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/7cc366fd

Branch: refs/heads/master
Commit: 7cc366fdd6e60c5421f9b9c8dcb84b92ae33f461
Parents: 4b2a2d5
Author: Igor Bondarenko <je...@gmail.com>
Authored: Wed Sep 5 15:56:52 2012 +0300
Committer: Dave Brondsema <db...@geek.net>
Committed: Mon Sep 10 15:35:17 2012 +0000

----------------------------------------------------------------------
 .../forgehg/tests/functional/test_controllers.py   |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/7cc366fd/ForgeHg/forgehg/tests/functional/test_controllers.py
----------------------------------------------------------------------
diff --git a/ForgeHg/forgehg/tests/functional/test_controllers.py b/ForgeHg/forgehg/tests/functional/test_controllers.py
index b81d996..e36c91a 100644
--- a/ForgeHg/forgehg/tests/functional/test_controllers.py
+++ b/ForgeHg/forgehg/tests/functional/test_controllers.py
@@ -208,18 +208,21 @@ class TestLogPagination(TestController):
         assert "pager_curpage" not in resp
         resp = self.app.get(self._get_ci() + 'log/?page=2')
         assert "pager_curpage" not in resp
-    #there are 26 commits
+
     def test_log_messages(self):
         resp = self.app.get(self._get_ci() + 'log/')
-        #show the first commit
+        # first commit is on the first page
         assert "[0debe4]" in resp
-        #show the 25th commit
+        # 25th commit is on the first page too
         assert "[ab7517]" in resp
-        #show the 26th commit
+        # 26th commit is not on the first page
         assert "[dc406e]" not in resp
         resp = self.app.get(self._get_ci() + 'log/?page=1')
         assert "[0debe4]" not in resp
+        # 26th commit is on the second page
         assert "[dc406e]" in resp
+
+        # test with greater limit
         resp = self.app.get(self._get_ci() + 'log/?limit=50')
         assert "[0debe4]" in resp
         assert "[dc406e]" in resp