Ticket #13509: django-pypy.diff

File django-pypy.diff, 1000 bytes (added by Alex Gaynor, 15 years ago)
  • tests/regressiontests/comment_tests/tests/comment_view_tests.py

    diff --git a/tests/regressiontests/comment_tests/tests/comment_view_tests.py b/tests/regressiontests/comment_tests/tests/comment_view_tests.py
    index bb84ab7..f02dca4 100644
    a b class CommentViewTests(CommentTestCase):  
    174174        actually getting saved
    175175        """
    176176        def receive(sender, **kwargs): return False
    177         signals.comment_will_be_posted.connect(receive)
     177        signals.comment_will_be_posted.connect(receive, dispatch_uid="comment-test")
    178178        a = Article.objects.get(pk=1)
    179179        data = self.getValidData(a)
    180180        response = self.client.post("/post/", data)
    181181        self.assertEqual(response.status_code, 400)
    182182        self.assertEqual(Comment.objects.count(), 0)
     183        signals.comment_will_be_posted.disconnect(dispatch_uid="comment-test")
    183184
    184185    def testWillBePostedSignalModifyComment(self):
    185186        """
Back to Top