mirror of https://github.com/patacrep/patacrep.git
Oliverpool
8 years ago
4 changed files with 24 additions and 1 deletions
@ -0,0 +1 @@ |
|||
- "{'customname:': ''}" |
@ -0,0 +1 @@ |
|||
- customname: |
@ -0,0 +1,21 @@ |
|||
"""Fake plugin for test purposes.""" |
|||
|
|||
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} |
|||
|
Loading…
Reference in new issue