summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Piercy <web@stevepiercy.com>2018-09-10 21:37:52 -0700
committerSteve Piercy <web@stevepiercy.com>2018-09-10 21:37:52 -0700
commit2d6f4f79b88f11d3336c1181bcf31cf43f031be7 (patch)
tree6244851c451c0f02d0122a581335c44c283cc174
parent08c382a72368fb34c52723b9de728937c4897754 (diff)
downloadwebtest-2d6f4f79b88f11d3336c1181bcf31cf43f031be7.tar.gz
Fix failure of docs build due to no indentation of code block
- grammar fixes - add link via interspinx to python class
-rw-r--r--webtest/app.py15
1 files changed, 7 insertions, 8 deletions
diff --git a/webtest/app.py b/webtest/app.py
index 5b7a3e5..1003b2d 100644
--- a/webtest/app.py
+++ b/webtest/app.py
@@ -341,18 +341,17 @@ class TestApp(object):
Do a POST request. Similar to :meth:`~webtest.TestApp.get`.
:param params:
- Are put in the body of the request. If params is a
- iterator it will be urlencoded, if it is string it will not
+ Are put in the body of the request. If params is an
+ iterator, it will be urlencoded. If it is a string, it will not
be encoded, but placed in the body directly.
- Can be a collections.OrderedDict with
+ Can be a :class:`python:collections.OrderedDict` with
:class:`webtest.forms.Upload` fields included::
-
- app.post('/myurl', collections.OrderedDict([
- ('textfield1', 'value1'),
- ('uploadfield', webapp.Upload('filename.txt', 'contents'),
- ('textfield2', 'value2')])))
+ app.post('/myurl', collections.OrderedDict([
+ ('textfield1', 'value1'),
+ ('uploadfield', webapp.Upload('filename.txt', 'contents'),
+ ('textfield2', 'value2')])))
:param upload_files:
It should be a list of ``(fieldname, filename, file_content)``.