From 30eca46587fe482aff83c1210f3e7f897bffc02e Mon Sep 17 00:00:00 2001 From: Iacopo Spalletti Date: Tue, 13 Sep 2016 06:59:46 +0200 Subject: [PATCH] Add test for #322 --- tests/test_plugins.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/test_plugins.py b/tests/test_plugins.py index 7ef7202..4ab54ea 100644 --- a/tests/test_plugins.py +++ b/tests/test_plugins.py @@ -134,6 +134,13 @@ class PluginTest(BaseTest): rendered = plugin.render_plugin(context, ph) self.assertTrue(rendered.find('

second post first line

') > -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('
-1) + self.assertTrue(rendered.find('
-1) + def test_plugin_tags(self): pages = self.get_pages() posts = self.get_posts()