Skip to content

Commit

Permalink
Add test for #322
Browse files Browse the repository at this point in the history
  • Loading branch information
yakky committed Sep 13, 2016
1 parent 40171e4 commit 30eca46
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_plugins.py
Expand Up @@ -134,6 +134,13 @@ def test_plugin_latest(self):
rendered = plugin.render_plugin(context, ph)
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):
pages = self.get_pages()
posts = self.get_posts()
Expand Down

0 comments on commit 30eca46

Please sign in to comment.