allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jetm...@apache.org
Subject [10/10] allura git commit: [#8020] ticket:866 add flush in test
Date Thu, 21 Jan 2016 15:29:49 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/0be0ea68
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/0be0ea68
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/0be0ea68

Branch: refs/heads/ib/8020b
Commit: 0be0ea681066eeaae8a568cd1968d3608759f593
Parents: 684e6a2
Author: Denis Kotov <deniskkotov@gmail.com>
Authored: Wed Jan 20 21:45:51 2016 +0200
Committer: Denis Kotov <deniskkotov@gmail.com>
Committed: Wed Jan 20 21:45:51 2016 +0200

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


http://git-wip-us.apache.org/repos/asf/allura/blob/0be0ea68/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