mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-20 04:58:32 +02:00
behave test and dummy short exporter
This commit is contained in:
parent
ddebb67f85
commit
ac0233a162
2 changed files with 7 additions and 0 deletions
|
@ -1,5 +1,11 @@
|
||||||
Feature: Custom formats
|
Feature: Custom formats
|
||||||
|
|
||||||
|
Scenario: Short printing via --format flag
|
||||||
|
Given We use the config "pretty.yaml"
|
||||||
|
When we run "jrnl --format short -3"
|
||||||
|
Then we should get no error
|
||||||
|
And the output should be pretty printed
|
||||||
|
|
||||||
Scenario: Pretty Printing aka the Default
|
Scenario: Pretty Printing aka the Default
|
||||||
Given We use the config "pretty.yaml"
|
Given We use the config "pretty.yaml"
|
||||||
When we run "jrnl --format pretty -3"
|
When we run "jrnl --format pretty -3"
|
||||||
|
|
|
@ -28,6 +28,7 @@ __importers = [JRNLImporter]
|
||||||
|
|
||||||
__exporter_types = {name: plugin for plugin in __exporters for name in plugin.names}
|
__exporter_types = {name: plugin for plugin in __exporters for name in plugin.names}
|
||||||
__exporter_types["pretty"] = None
|
__exporter_types["pretty"] = None
|
||||||
|
__exporter_types["short"] = None
|
||||||
__importer_types = {name: plugin for plugin in __importers for name in plugin.names}
|
__importer_types = {name: plugin for plugin in __importers for name in plugin.names}
|
||||||
|
|
||||||
EXPORT_FORMATS = sorted(__exporter_types.keys())
|
EXPORT_FORMATS = sorted(__exporter_types.keys())
|
||||||
|
|
Loading…
Add table
Reference in a new issue