aboutsummaryrefslogtreecommitdiff
path: root/tests/data/simple/templates/new_entry_from_data_broken.yaml
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2021-09-16 12:23:54 +0200
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2021-09-16 12:23:54 +0200
commitb3e0bcb8da7bea6c0b0636fdf68d0aac6ab74754 (patch)
treebbd329234a6fedd6691225364a4ba2cb26757b8e /tests/data/simple/templates/new_entry_from_data_broken.yaml
parent6d920f6aad7f17a676883c6f3054b7b0d8be9844 (diff)
Add a method to create an entry from a rendered template
Diffstat (limited to 'tests/data/simple/templates/new_entry_from_data_broken.yaml')
-rw-r--r--tests/data/simple/templates/new_entry_from_data_broken.yaml14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/data/simple/templates/new_entry_from_data_broken.yaml b/tests/data/simple/templates/new_entry_from_data_broken.yaml
new file mode 100644
index 0000000..73798ce
--- /dev/null
+++ b/tests/data/simple/templates/new_entry_from_data_broken.yaml
@@ -0,0 +1,14 @@
+name: '{{ name }}'
+description: |
+ {{ description if description else "." indent(width=2, first=False) }}
+ # Note that the lack of | between "." and indent is wanted, to get a proper
+ # TemplatingError.
+position: '{{ position }}'
+# quantity (integer): how many items are there
+quantity: {{ quantity if quantity else "0" }}
+# value (float): how much each item is
+value: 0.0
+# cost (decimal): how much this costs
+cost: '0'
+# other (yaml):
+other: