Add test for #322
This commit is contained in:
parent
40171e46a6
commit
30eca46587
1 changed files with 7 additions and 0 deletions
|
@ -134,6 +134,13 @@ class PluginTest(BaseTest):
|
||||||
rendered = plugin.render_plugin(context, ph)
|
rendered = plugin.render_plugin(context, ph)
|
||||||
self.assertTrue(rendered.find('<p>second post first line</p>') > -1)
|
self.assertTrue(rendered.find('<p>second post first line</p>') > -1)
|
||||||
|
|
||||||
|
plugin = add_plugin(ph, 'BlogLatestEntriesPlugin', language='en')
|
||||||
|
context = self.get_plugin_context(pages[0], 'en', plugin, edit=False)
|
||||||
|
rendered = plugin.render_plugin(context, ph)
|
||||||
|
# data is picked from both apphook configs
|
||||||
|
self.assertTrue(rendered.find('<article id="post-first-post"') > -1)
|
||||||
|
self.assertTrue(rendered.find('<article id="post-different-appconfig"') > -1)
|
||||||
|
|
||||||
def test_plugin_tags(self):
|
def test_plugin_tags(self):
|
||||||
pages = self.get_pages()
|
pages = self.get_pages()
|
||||||
posts = self.get_posts()
|
posts = self.get_posts()
|
||||||
|
|
Loading…
Reference in a new issue