diff --git a/boards/tests.py b/boards/tests.py --- a/boards/tests.py +++ b/boards/tests.py @@ -1,6 +1,7 @@ # coding=utf-8 from django.utils.unittest import TestCase from django.test.client import Client +import time import boards @@ -112,8 +113,8 @@ class BoardTests(TestCase): self.assertEqual(1, Post.objects.count(), msg='The validation passed ' 'where it should fail') - # TODO Some workaround and test for the "waiting" validation should - # exist here + # Wait fot the posting delay or we won't be able to post + time.sleep(settings.POSTING_DELAY + 1) response = client.post(THREAD_PAGE_ONE, {'text': TEST_TEXT, 'tags': valid_tags}) self.assertEqual(HTTP_CODE_REDIRECT, response.status_code,