summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorXipmix <576337-xipmix@users.noreply.gitlab.com>2022-03-06 15:23:34 +1100
committerXipmix <576337-xipmix@users.noreply.gitlab.com>2022-03-06 15:23:34 +1100
commitfae2bb9248670b45c2fc947f165d254dfc50cc7a (patch)
tree6552a98761bbd3b2a0b4b2dabea1e4e576c46c55 /examples
parentdc90b1c3bf0a36e4cd8fb4cea3df735038d9e2b8 (diff)
downloadsubplot-fae2bb9248670b45c2fc947f165d254dfc50cc7a.tar.gz
Remove trailing whitespace
Diffstat (limited to 'examples')
-rw-r--r--examples/website/website.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/website/website.md b/examples/website/website.md
index 196c015..d74b2b6 100644
--- a/examples/website/website.md
+++ b/examples/website/website.md
@@ -1,7 +1,7 @@
# Introduction
This is a tutorial for the Subplot software. It is aimed at people who
-want to see what using Subplot is like.
+want to see what using Subplot is like.
This tutorial walks you through how to use Subplot to verify that the
Subplot web site, `subplot.liw.fi`, works and has the right kind of
@@ -112,7 +112,7 @@ Open `test.py` and `test.log`. The log file is useful if a scenario fails.
The [website.yaml][] file has a list of bindings. Each binding uses
one of the key words (given, when, then) and a pattern, and also a
function name. The pattern can be fixed text, or it can extract parts
-of the scenario step and pass those to the function.
+of the scenario step and pass those to the function.
Patterns which capture and extract parts of the scenario stesp
have the form `{name}` for single words, or `{name:text}`
@@ -122,7 +122,7 @@ the same step for different web sites.
The generated test program will call each function, with extracted
values, in the appropriate order. If the function finishes
successfully, the step succeeds. If the function raises an exception,
-the step fails.
+the step fails.
The `assert` statement is typically used to verify things in a
step function. For more useful error messages, Subplot provides the
@@ -149,12 +149,12 @@ achieve this, you should make the following changes:
by changing the bindings file, and the markdown file; then re-run
the commands to generate documentation and test program, and re-run
the test program: it should still pass
-
+
* also change the "when I look at the front page" to say "when I look
at the page"; then re-run all the commands again; these changes are
not functional, but it's important to make sure everything is easily
understood by all the people involved
-
+
* add a scenario to verify that there is a page
`https://subplot.liw.fi/contact` and that it contains "Lars" and
"Daniel"
@@ -163,7 +163,7 @@ achieve this, you should make the following changes:
add to the relevant scenario a step "then it has a content type
text/html", and the corresponding binding to the YAML file, and a
new function to the Python file
-
+
- you can get the content type from the return value of
`requests.get` as `r.headers["content-type"]`