mirror of https://github.com/patacrep/patacrep.git
oliverpool
8 years ago
committed by
GitHub
9 changed files with 31 additions and 3 deletions
@ -0,0 +1 @@ |
|||
- "{'customname:': ''}" |
@ -0,0 +1 @@ |
|||
- customname: |
@ -0,0 +1 @@ |
|||
- "{'customzippedname:': ''}" |
@ -0,0 +1 @@ |
|||
- customzippedname: |
@ -0,0 +1,15 @@ |
|||
"""Fake plugin for test purposes.""" |
|||
|
|||
from patacrep.content import ContentItem, ContentList, validate_parser_argument |
|||
|
|||
class FakeContent(ContentItem): |
|||
"""Fake content.""" |
|||
|
|||
def file_entry(self): |
|||
return {'customname:':''} |
|||
|
|||
def parse(keyword, argument, config): |
|||
return ContentList([FakeContent()]) |
|||
|
|||
CONTENT_PLUGINS = {'customname': parse} |
|||
|
Binary file not shown.
Loading…
Reference in new issue