summaryrefslogtreecommitdiff
path: root/tests/regressiontests/comment_tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/regressiontests/comment_tests')
-rw-r--r--tests/regressiontests/comment_tests/tests/moderation_view_tests.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/regressiontests/comment_tests/tests/moderation_view_tests.py b/tests/regressiontests/comment_tests/tests/moderation_view_tests.py
index 0abeff9687..c932fed2d2 100644
--- a/tests/regressiontests/comment_tests/tests/moderation_view_tests.py
+++ b/tests/regressiontests/comment_tests/tests/moderation_view_tests.py
@@ -93,6 +93,8 @@ class FlagViewTests(CommentTestCase):
self.testFlagPost()
self.assertEqual(received_signals, [signals.comment_was_flagged])
+ signals.comment_was_flagged.disconnect(receive)
+
def makeModerator(username):
u = User.objects.get(username=username)
ct = ContentType.objects.get_for_model(Comment)
@@ -164,6 +166,8 @@ class DeleteViewTests(CommentTestCase):
self.testDeletePost()
self.assertEqual(received_signals, [signals.comment_was_flagged])
+ signals.comment_was_flagged.disconnect(receive)
+
def testDeletedView(self):
comments = self.createSomeComments()
pk = comments[0].pk
@@ -239,6 +243,8 @@ class ApproveViewTests(CommentTestCase):
self.testApprovePost()
self.assertEqual(received_signals, [signals.comment_was_flagged])
+ signals.comment_was_flagged.disconnect(receive)
+
def testApprovedView(self):
comments = self.createSomeComments()
pk = comments[0].pk