behave test and dummy short exporter

This commit is contained in:
Suhas 2021-02-06 20:24:55 -05:00
parent ddebb67f85
commit ac0233a162
2 changed files with 7 additions and 0 deletions

View file

@ -1,5 +1,11 @@
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
Given We use the config "pretty.yaml"
When we run "jrnl --format pretty -3"

View file

@ -28,6 +28,7 @@ __importers = [JRNLImporter]
__exporter_types = {name: plugin for plugin in __exporters for name in plugin.names}
__exporter_types["pretty"] = None
__exporter_types["short"] = None
__importer_types = {name: plugin for plugin in __importers for name in plugin.names}
EXPORT_FORMATS = sorted(__exporter_types.keys())