mirror of https://github.com/patacrep/patacrep.git
Oliverpool
9 years ago
5 changed files with 21 additions and 1 deletions
@ -0,0 +1 @@ |
|||||
|
- "{'customzippedname:': ''}" |
@ -0,0 +1,4 @@ |
|||||
|
- addsongdir: |
||||
|
path: "datadir_sort" |
||||
|
content: |
||||
|
- 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 {'customzippedname:':''} |
||||
|
|
||||
|
def parse(keyword, argument, config): |
||||
|
return ContentList([FakeContent()]) |
||||
|
|
||||
|
CONTENT_PLUGINS = {'customzipedname': parse} |
||||
|
|
Binary file not shown.
Loading…
Reference in new issue