Show More
@@ -90,19 +90,10 b' class PostTests(TestCase):' | |||
|
90 | 90 | self.assertIsNotNone(post, 'Post not created') |
|
91 | 91 | self.assertTrue(tag in thread.tags.all(), 'Tag not added to thread') |
|
92 | 92 | |
|
93 | def test_thread_max_count(self): | |
|
94 | """Test deletion of old posts when the max thread count is reached""" | |
|
95 | ||
|
96 | for i in range(settings.get_int('Messages', 'MaxThreadCount') + 1): | |
|
97 | self._create_post() | |
|
98 | ||
|
99 | self.assertEqual(settings.get_int('Messages', 'MaxThreadCount'), | |
|
100 | len(Thread.objects.exclude(status=STATUS_ARCHIVE))) | |
|
101 | ||
|
102 | 93 | def test_pages(self): |
|
103 | 94 | """Test that the thread list is properly split into pages""" |
|
104 | 95 | |
|
105 |
for i in range(settings.get_int(' |
|
|
96 | for i in range(settings.get_int('View', 'ThreadsPerPage') * 2): | |
|
106 | 97 | self._create_post() |
|
107 | 98 | |
|
108 | 99 | all_threads = Thread.objects.exclude(status=STATUS_ARCHIVE) |
General Comments 0
You need to be logged in to leave comments.
Login now