Convert "short" and "pretty" (and "default") formaters to plugins

further to https://github.com/jrnl-org/jrnl/pull/1177
This commit is contained in:
MinchinWeb 2021-05-09 16:29:21 -06:00
parent e1d2f873da
commit 1fd04ad03d
5 changed files with 85 additions and 30 deletions

View file

@ -10,18 +10,21 @@ Feature: Functionality of Importer and Exporter Plugins
Examples:
| plugin_name | version | source | type | filename |
| jrnl | v.2.8.1 | plugins | importer | jrnl |
| boxed | v.2.8.1 | plugins | exporter | fancy |
| dates | v.2.8.1 | plugins | exporter | dates |
| fancy | v.2.8.1 | plugins | exporter | fancy |
| json | v.2.8.1 | plugins | exporter | json |
| markdown | v.2.8.1 | plugins | exporter | markdown |
| md | v.2.8.1 | plugins | exporter | markdown |
| tags | v.2.8.1 | plugins | exporter | tag |
| text | v.2.8.1 | plugins | exporter | text |
| txt | v.2.8.1 | plugins | exporter | text |
| xml | v.2.8.1 | plugins | exporter | xml |
| yaml | v.2.8.1 | plugins | exporter | yaml |
| jrnl | v2.8.1 | plugins | importer | jrnl |
| boxed | v2.8.1 | plugins | exporter | fancy |
| dates | v2.8.1 | plugins | exporter | dates |
| default | v2.8.1 | plugins | exporter | pretty |
| fancy | v2.8.1 | plugins | exporter | fancy |
| json | v2.8.1 | plugins | exporter | json |
| markdown | v2.8.1 | plugins | exporter | markdown |
| md | v2.8.1 | plugins | exporter | markdown |
| pretty | v2.8.1 | plugins | exporter | pretty |
| short | v2.8.1 | plugins | exporter | short |
| tags | v2.8.1 | plugins | exporter | tag |
| text | v2.8.1 | plugins | exporter | text |
| txt | v2.8.1 | plugins | exporter | text |
| xml | v2.8.1 | plugins | exporter | xml |
| yaml | v2.8.1 | plugins | exporter | yaml |
@skip_only_with_external_plugins
Scenario Outline: List external plugin names in --version
@ -31,21 +34,24 @@ Feature: Functionality of Importer and Exporter Plugins
And The output should contain "<plugin_name> : <version> from jrnl.<source>.<type>.<filename>"
Examples:
| plugin_name | version | source | type | filename |
| jrnl | v.2.8.1 | plugins | importer | jrnl |
| jrnl | v2.8.1 | plugins | importer | jrnl |
| json | v1.0.0 | contrib | importer | json |
| boxed | v.2.8.1 | plugins | exporter | fancy |
| dates | v.2.8.1 | plugins | exporter | dates |
| fancy | v.2.8.1 | plugins | exporter | fancy |
| boxed | v2.8.1 | plugins | exporter | fancy |
| dates | v2.8.1 | plugins | exporter | dates |
| default | v2.8.1 | plugins | exporter | pretty |
| fancy | v2.8.1 | plugins | exporter | fancy |
| json | v1.0.0 | contrib | exporter | json |
| markdown | v.2.8.1 | plugins | exporter | markdown |
| md | v.2.8.1 | plugins | exporter | markdown |
| tags | v.2.8.1 | plugins | exporter | tag |
| text | v.2.8.1 | plugins | exporter | text |
| txt | v1.0.0 | contrib | exporter | rot13 |
| xml | v.2.8.1 | plugins | exporter | xml |
| yaml | v.2.8.1 | plugins | exporter | yaml |
| markdown | v2.8.1 | plugins | exporter | markdown |
| md | v2.8.1 | plugins | exporter | markdown |
| pretty | v2.8.1 | plugins | exporter | pretty |
| rot13 | v1.0.0 | contrib | exporter | rot13 |
| short | v2.8.1 | plugins | exporter | short |
| tags | v2.8.1 | plugins | exporter | tag |
| testing | v0.0.1 | contrib | exporter | testing |
| text | v2.8.1 | plugins | exporter | text |
| txt | v1.0.0 | contrib | exporter | rot13 |
| xml | v2.8.1 | plugins | exporter | xml |
| yaml | v2.8.1 | plugins | exporter | yaml |
@skip_only_with_external_plugins
Scenario Outline: Do not list overridden plugin names in --version
@ -56,5 +62,5 @@ Feature: Functionality of Importer and Exporter Plugins
Examples:
| plugin_name | version | source | type | filename |
| json | v.2.8.1 | plugins | exporter | json |
| txt | v.2.8.1 | plugins | exporter | text |
| json | v2.8.1 | plugins | exporter | json |
| txt | v2.8.1 | plugins | exporter | text |