mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-06-28 13:36:14 +02:00
Add tags to json and xml exporters (#975)
* tag array for json * add tags to entry in xml * xml test * json test * black * removed called
This commit is contained in:
parent
c1b93cf81b
commit
be38cfa87a
4 changed files with 30 additions and 4 deletions
|
@ -9,6 +9,8 @@ Feature: Exporting a Journal
|
|||
And "tags" in the json output should contain "@idea"
|
||||
And "tags" in the json output should contain "@journal"
|
||||
And "tags" in the json output should contain "@dan"
|
||||
And entry 1 should have an array "tags" with 2 elements
|
||||
And entry 2 should have an array "tags" with 2 elements
|
||||
|
||||
Scenario: Exporting using filters should only export parts of the journal
|
||||
Given we use the config "tags.yaml"
|
||||
|
@ -89,6 +91,7 @@ Feature: Exporting a Journal
|
|||
Then the output should be a valid XML string
|
||||
And "entries" node in the xml output should have 2 elements
|
||||
And "tags" in the xml output should contain ["@idea", "@journal", "@dan"]
|
||||
And there should be 7 "tag" elements
|
||||
|
||||
Scenario: Exporting tags
|
||||
Given we use the config "tags.yaml"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue