You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by ke...@apache.org on 2018/03/08 20:35:11 UTC

allura git commit: fixup! fixup! [#8193] Include rate limiting on forum topics, fix minor tickets UI bug

Repository: allura
Updated Branches:
  refs/heads/kt/8193 a299b15b3 -> 2833c83e1


fixup! fixup! [#8193] Include rate limiting on forum topics, fix minor tickets UI bug


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

Branch: refs/heads/kt/8193
Commit: 2833c83e18f304be5da7cc5ddccaa2da3f6eae33
Parents: a299b15
Author: Kenton Taylor <kt...@slashdotmedia.com>
Authored: Thu Mar 8 15:34:49 2018 -0500
Committer: Kenton Taylor <kt...@slashdotmedia.com>
Committed: Thu Mar 8 15:34:49 2018 -0500

----------------------------------------------------------------------
 Allura/allura/tests/functional/test_discuss.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/2833c83e/Allura/allura/tests/functional/test_discuss.py
----------------------------------------------------------------------
diff --git a/Allura/allura/tests/functional/test_discuss.py b/Allura/allura/tests/functional/test_discuss.py
index 8f3c968..00bb770 100644
--- a/Allura/allura/tests/functional/test_discuss.py
+++ b/Allura/allura/tests/functional/test_discuss.py
@@ -135,9 +135,9 @@ class TestDiscuss(TestDiscussBase):
         with h.push_config(config, **{'allura.rate_limits_per_user': '{"3600": 2}'}):
             for i in range(0, 2):
                 self._make_post('This is a post {}'.format(i))
-            with assert_raises(AppError):
-                self._make_post('This is a post that should fail.')
-            return 'foo'
+
+            r = self._make_post('This is a post that should fail.')
+            assert 'rate limit exceeded' in r.body
 
     def test_permissions(self):
         thread_url = self._thread_link()