File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 2
2
3
3
from django .conf import settings
4
4
from django .contrib .sites .models import Site
5
+ from django .template import Context
6
+ from django .template import Template
5
7
from django .template import TemplateSyntaxError , loader
6
8
from django .test import TransactionTestCase
7
9
from threadedcomments .templatetags import threadedcomments_tags as tags
@@ -214,6 +216,11 @@ def test_last_child_repointed_correctly_on_delete(self):
214
216
comment = Comment .objects .get (pk = 1 )
215
217
self .assertEqual (last_child , comment .last_child )
216
218
219
+ def test_render_comment_list (self ):
220
+ template = Template ('{% load threadedcomments_tags %}{% render_comment_list for sites.site 1 %}' )
221
+ html = sanitize_html (template .render (Context ()))
222
+ self .assertIn ('Comment 7' , html )
223
+
217
224
218
225
# Templatetags tests
219
226
##############################################################################
You can’t perform that action at this time.
0 commit comments