summaryrefslogtreecommitdiff
path: root/subplot.md
diff options
context:
space:
mode:
Diffstat (limited to 'subplot.md')
-rw-r--r--subplot.md21
1 files changed, 19 insertions, 2 deletions
diff --git a/subplot.md b/subplot.md
index 6ddc2c7..07c07de 100644
--- a/subplot.md
+++ b/subplot.md
@@ -2561,7 +2561,9 @@ then command fails
title: Two bindings match
template: python
bindings:
-- badbindings.yaml
+- twobindings.yaml
+functions:
+- a_function.py
...
# Broken scenario because step has two possible bindings
@@ -2570,12 +2572,27 @@ given a binding
```
~~~~
+~~~{#twobindings.yaml .file .yaml}
+- given: a {xyzzy}
+ function: a_function
+- given: a {plugh}
+ function: a_function
+~~~
+
+~~~{#a_function.py .file .python}
+def a_function(ctx):
+ assert 0
+~~~
+
```scenario
given file twobindings.md
-and file badbindings.yaml
+and file twobindings.yaml
+given file a_function.py
and an installed subplot
when I try to run subplot codegen --run twobindings.md -o test.py
then command fails
+then stderr contains "xyzzy"
+then stderr contains "plugh"
```