allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hei...@apache.org
Subject [10/50] allura git commit: [#8020] ticket:866 add flush in test
Date Wed, 27 Jan 2016 20:22:24 GMT
[#8020] ticket:866 add flush in test


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

Branch: refs/heads/hs/8035
Commit: 3ccbb5d4c123a5e0c302bae00bbe0aeebdee3df2
Parents: 31396ee
Author: Denis Kotov <deniskkotov@gmail.com>
Authored: Wed Jan 20 21:45:51 2016 +0200
Committer: Dave Brondsema <dave@brondsema.net>
Committed: Wed Jan 27 12:08:19 2016 -0500

----------------------------------------------------------------------
 Allura/allura/tests/model/test_discussion.py | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/3ccbb5d4/Allura/allura/tests/model/test_discussion.py
----------------------------------------------------------------------
diff --git a/Allura/allura/tests/model/test_discussion.py b/Allura/allura/tests/model/test_discussion.py
index 7b15c1d..2ff36f4 100644
--- a/Allura/allura/tests/model/test_discussion.py
+++ b/Allura/allura/tests/model/test_discussion.py
@@ -537,6 +537,7 @@ def test_spam_num_replies(spam_checker):
     d = M.Discussion(shortname='test', name='test')
     t = M.Thread(discussion_id=d._id, subject='Test Thread', num_replies=2)
     M.Post(discussion_id=d._id, thread_id=t._id, status='ok')
+    ThreadLocalORMSession.flush_all()
     p1 = M.Post(discussion_id=d._id, thread_id=t._id, status='spam')
     p1.spam()
     assert_equal(t.num_replies, 1)


Mime
View raw message