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:
eshrh 2020-06-13 14:58:35 -04:00 committed by GitHub
parent c1b93cf81b
commit be38cfa87a
4 changed files with 30 additions and 4 deletions

View file

@ -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"