diff --git a/boards/tests.py b/boards/tests.py --- a/boards/tests.py +++ b/boards/tests.py @@ -144,6 +144,10 @@ class BoardTests(TestCase): def test_post_validation(self): """Test the validation of the post form""" + # Disable captcha for the test + captcha_enabled = settings.ENABLE_CAPTCHA + settings.ENABLE_CAPTCHA = False + Post.objects.all().delete() client = Client() @@ -175,6 +179,9 @@ class BoardTests(TestCase): self.assertEqual(2, Post.objects.count(), msg=u'No posts were created') + # Restore captcha setting + settings.ENABLE_CAPTCHA = captcha_enabled + def test_404(self): """Test receiving error 404 when opening a non-existent page"""