1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
|
News
====
1.4.3
-----
* fully implement decoding of HTML entities
* fix tox configuration
1.4.2
-----
* fix tests error due to CLRF in a tarball
1.4.1
-----
* add travis-ci
* migrate repository to https://github.com/Pylons/webtest
* Fix a typo in apps.py: selectedIndicies
* Preserve field order during parsing (support for deform and such)
* allow equals sign in the cookie by spliting name-value-string pairs on
the first '=' sign as per
http://tools.ietf.org/html/rfc6265#section-5.2
* fix an error when you use AssertionError(response) with unicode chars in
response
1.4.0
-----
* added webtest.ext - allow to use casperjs
1.3.6
------
* fix `#42 <https://bitbucket.org/ianb/webtest/issue/42>`_ Check uppercase
method.
* fix `#36 <https://bitbucket.org/ianb/webtest/issue/36>`_ Radio can use forced
value.
* fix `#24 <https://bitbucket.org/ianb/webtest/issue/24>`_ Include test
fixtures.
* fix bug when trying to print a response which contain some unicode chars
1.3.5
------
* fix `#39 <https://bitbucket.org/ianb/webtest/issue/39>`_ Add PATCH to
acceptable methods.
1.3.4
-----
* fix `#33 <https://bitbucket.org/ianb/webtest/issue/33>`_ Remove
CaptureStdout. Do nothing and break pdb
* use OrderedDict to store fields in form. See
`#31 <https://bitbucket.org/ianb/webtest/issue/31>`_
* fix `#38 <https://bitbucket.org/ianb/webtest/issue/38>`_ Allow to post falsey
values.
* fix `#37 <https://bitbucket.org/ianb/webtest/issue/37>`_ Allow
Content-Length: 0 without Content-Type
* `fix #30 <https://bitbucket.org/ianb/webtest/issue/30>`_ bad link to pyquery
documentation
* Never catch NameError during iteration
1.3.3
-----
* added ``post_json``, ``put_json``, ``delete_json``
* fix `#25 <https://bitbucket.org/ianb/webtest/issue/25>`_ params dictionary of
webtest.AppTest.post() does not support unicode values
1.3.2
-----
* improve showbrowser. fixed `#23 <https://bitbucket.org/ianb/webtest/issue/23>`_
* print_stderr fail with unicode string on python2
1.3.1
-----
* Added .option() `#20 <https://bitbucket.org/ianb/webtest/issue/20>`_
* Fix #21
* Full python3 compat
1.3
---
* Moved TestApp to app.py
* Added selenium testing framework. See :mod:`~webtest.sel` module.
1.2.4
------
* Accept lists for ``app.post(url, params=[...])``
* Allow to use url that starts with the SCRIPT_NAME found in extra_environ
* Fix `#16 <https://bitbucket.org/ianb/webtest/issue/16>`_ Default
content-type is now correctly set to `application/octet-stream`
* Fix `#14 and #18 <https://bitbucket.org/ianb/webtest/issue/18>`_ Allow to use
`.delete(params={})`
* Fix `#12 <https://bitbucket.org/ianb/webtest/issue/12>`_
1.2.3
-----
* Fix `#10
<http://bitbucket.org/ianb/webtest/issue/10/testapprequest-method-overwrites-specifics-with-testapp-scoped>`_,
now `TestApp.extra_environ` doesn't take precedence over a WSGI
environment passed in through the request.
* Removed stray print
1.2.2
-----
* Revert change to cookies that would add ``"`` around cookie values.
* Added property :meth:`webtest.Response.pyquery` which returns a
`PyQuery <http://pyquery.org/>`_ object.
* Set base_url on ``resp.lxml``
* Include tests and docs in tarball.
* Fix sending in webob.Request (or webtest.TestRequest) objects.
* Fix handling forms with file uploads, when no file is selected.
* Added ``extra_environ`` argument to :meth:`webtest.TestResponse.click`.
* Fixed/added wildcard statuses, like ``status="4*"``
* Fix file upload fields in forms: allow upload field to be empty.
* Added support for single-quoted html attributes.
* `TestResponse` now has unicode support. It is turned on by default
for all responses with charset information. **This is backward
incompatible change** if you rely (e.g. in doctests) on parsed
form fields or responses returned by `json` and `lxml` methods
being encoded strings when charset header is in response. In order
to switch to old behaviour pass `use_unicode=False` flag to
`TestApp` constructor.
1.2.1
-----
* Added method :meth:`TestApp.request`, which can be used for
sending requests with different methods (e.g., ``MKCOL``). This
method sends all its keyword arguments to
:meth:`webtest.TestRequest.blank` and then executes the request.
The parameters are somewhat different than other methods (like
:meth:`webtest.TestApp.get`), as they match WebOb's attribute
names exactly (the other methods were written before WebOb existed).
* Removed the copying of stdout to stderr during requests.
* Fix file upload fields in forms (`#340
<http://trac.pythonpaste.org/pythonpaste/ticket/340>`_) -- you could
upload files with :meth:`webtest.TestApp.post`, but if you use
``resp.form`` file upload fields would not work (from rcs-comp.com
and Matthew Desmarais).
1.2
---
* Fix form inputs; text inputs always default to the empty string, and
unselected radio inputs default to nothing at all. From Daniele
Paolella.
* Fix following links with fragments (these fragments should not be
sent to the WSGI application). From desmaj.
* Added ``force_value`` to select fields, like
``res.form['select'].force_value("new_value")``. This makes it
possible to simulate forms that are dynamically updated. From
Matthew Desmarais.
* Fixed :meth:`webtest.Response.mustcontain` when you pass in a
``no=[strings]`` argument.
1.1
---
* Changed the ``__str__`` of responses to make them more doctest
friendly:
- All headers are displayed capitalized, like Content-Type
- Headers are sorted alphabetically
* Changed ``__repr__`` to only show the body length if the complete
body is not shown (for short bodies the complete body is in the
repr)
* Note: **these are backward incompatible changes** if you are using
doctest (you'll have to update your doctests with the new format).
* Fixed exception in the ``.delete`` method.
* Added a ``content_type`` argument to ``app.post`` and ``app.put``,
which sets the ``Content-Type`` of the request. This is more
convenient when testing REST APIs.
* Skip links in ``<script>...</script>`` tags (since that's not real
markup).
1.0.2
-----
* Don't submit unnamed form fields.
* Checkboxes with no explicit ``value`` send ``on`` (previously they
sent ``checked``, which isn't what browsers send).
* Support for ``<select multiple>`` fields (from Matthew Desmarais)
1.0.1
---
* Fix the ``TestApp`` validator's InputWrapper lacking support for
readline with an argument as needed by the cgi module.
1.0
---
* Keep URLs in-tact in cases such as
``app.get('http://www.python.org')`` (so HTTP_HOST=www.python.org,
etc).
* Fix ``lxml.html`` import, so lxml 2.0 users can get HTML lxml
objects from ``resp.lxml``
* Treat ``<input type="image">`` like a submit button.
* Use ``BaseCookie`` instead of ``SimpleCookie`` for storing cookies
(avoids quoting cookie values).
* Accept any ``params`` argument that has an ``items`` method (like
MultiDict)
0.9
---
Initial release
|