From a655f1584b354b15da54c10f6fbacb6af09067dd Mon Sep 17 00:00:00 2001 From: Oliverpool Date: Sun, 3 Jul 2016 22:38:06 +0200 Subject: [PATCH] simplify custom plugin --- test/test_content/datadir/python/content/customplugin.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/test/test_content/datadir/python/content/customplugin.py b/test/test_content/datadir/python/content/customplugin.py index 2137198c..e7333b30 100755 --- a/test/test_content/datadir/python/content/customplugin.py +++ b/test/test_content/datadir/python/content/customplugin.py @@ -5,16 +5,10 @@ from patacrep.content import ContentItem, ContentList, validate_parser_argument class FakeContent(ContentItem): """Fake content.""" - def render(self, __context): - return 'fakecontent' - def file_entry(self): return {'customname:':''} -#pylint: disable=unused-argument def parse(keyword, argument, config): - """ - """ return ContentList([FakeContent()]) CONTENT_PLUGINS = {'customname': parse}