##// END OF EJS Templates
Fixed/removed obsolete tests
neko259 -
r1663:a6555ca0 default
parent child Browse files
Show More
@@ -90,19 +90,10 b' class PostTests(TestCase):'
90 self.assertIsNotNone(post, 'Post not created')
90 self.assertIsNotNone(post, 'Post not created')
91 self.assertTrue(tag in thread.tags.all(), 'Tag not added to thread')
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 def test_pages(self):
93 def test_pages(self):
103 """Test that the thread list is properly split into pages"""
94 """Test that the thread list is properly split into pages"""
104
95
105 for i in range(settings.get_int('Messages', 'MaxThreadCount')):
96 for i in range(settings.get_int('View', 'ThreadsPerPage') * 2):
106 self._create_post()
97 self._create_post()
107
98
108 all_threads = Thread.objects.exclude(status=STATUS_ARCHIVE)
99 all_threads = Thread.objects.exclude(status=STATUS_ARCHIVE)
General Comments 0
You need to be logged in to leave comments. Login now