Better plugin templates

This commit is contained in:
Iacopo Spalletti 2016-06-26 12:48:40 +02:00
commit 41834f6bf9
No known key found for this signature in database
GPG key ID: BDCBC2EB289F60C6
4 changed files with 12 additions and 8 deletions

View file

@ -165,7 +165,7 @@ try:
)
context = self.get_plugin_context(pages[0], 'en', plugin, edit=False)
rendered = plugin.render_plugin(context, post.liveblog)
self.assertFalse(rendered)
self.assertFalse(rendered.strip())
plugin.publish = True
plugin.save()