3
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6
<html xmlns="http://www.w3.org/1999/xhtml">
8
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
10
<title>News — WebTest v1.3 documentation</title>
11
<link rel="stylesheet" href="_static/default.css" type="text/css" />
12
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
13
<script type="text/javascript">
14
var DOCUMENTATION_OPTIONS = {
17
COLLAPSE_INDEX: false,
22
<script type="text/javascript" src="_static/jquery.js"></script>
23
<script type="text/javascript" src="_static/underscore.js"></script>
24
<script type="text/javascript" src="_static/doctools.js"></script>
25
<link rel="top" title="WebTest v1.3 documentation" href="index.html" />
26
<link rel="next" title="License" href="license.html" />
27
<link rel="prev" title="Testing Applications with WebTest" href="index.html" />
33
<li class="right" style="margin-right: 10px">
34
<a href="genindex.html" title="General Index"
35
accesskey="I">index</a></li>
37
<a href="py-modindex.html" title="Python Module Index"
40
<a href="license.html" title="License"
41
accesskey="N">next</a> |</li>
43
<a href="index.html" title="Testing Applications with WebTest"
44
accesskey="P">previous</a> |</li>
45
<li><a href="index.html">WebTest v1.3 documentation</a> »</li>
49
<div class="document">
50
<div class="documentwrapper">
51
<div class="bodywrapper">
54
<div class="section" id="news">
55
<h1>News<a class="headerlink" href="#news" title="Permalink to this headline">¶</a></h1>
56
<div class="section" id="id1">
57
<h2>1.2.5<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h2>
59
<li>Moved TestApp to app.py</li>
60
<li>Added selenium testing framework. See <a class="reference internal" href="modules/sel.html#module-webtest.sel" title="webtest.sel"><tt class="xref py py-mod docutils literal"><span class="pre">sel</span></tt></a> module.</li>
63
<div class="section" id="id2">
64
<h2>1.2.4<a class="headerlink" href="#id2" title="Permalink to this headline">¶</a></h2>
66
<li>Accept lists for <tt class="docutils literal"><span class="pre">app.post(url,</span> <span class="pre">params=[...])</span></tt></li>
67
<li>Allow to use url that starts with the SCRIPT_NAME found in extra_environ</li>
68
<li>Fix <a class="reference external" href="https://bitbucket.org/ianb/webtest/issue/16">#16</a> Default
69
content-type is now correctly set to <cite>application/octet-stream</cite></li>
70
<li>Fix <a class="reference external" href="https://bitbucket.org/ianb/webtest/issue/18">#14 and #18</a> Allow to use
71
<cite>.delete(params={})</cite></li>
72
<li>Fix <a class="reference external" href="https://bitbucket.org/ianb/webtest/issue/12">#12</a></li>
75
<div class="section" id="id5">
76
<h2>1.2.3<a class="headerlink" href="#id5" title="Permalink to this headline">¶</a></h2>
78
<li>Fix <a class="reference external" href="http://bitbucket.org/ianb/webtest/issue/10/testapprequest-method-overwrites-specifics-with-testapp-scoped">#10</a>,
79
now <cite>TestApp.extra_environ</cite> doesn’t take precedence over a WSGI
80
environment passed in through the request.</li>
81
<li>Removed stray print</li>
84
<div class="section" id="id7">
85
<h2>1.2.2<a class="headerlink" href="#id7" title="Permalink to this headline">¶</a></h2>
87
<li>Revert change to cookies that would add <tt class="docutils literal"><span class="pre">"</span></tt> around cookie values.</li>
88
<li>Added property <tt class="xref py py-meth docutils literal"><span class="pre">webtest.Response.pyquery()</span></tt> which returns a
89
<a class="reference external" href="http://pyquery.org/">PyQuery</a> object.</li>
90
<li>Set base_url on <tt class="docutils literal"><span class="pre">resp.lxml</span></tt></li>
91
<li>Include tests and docs in tarball.</li>
92
<li>Fix sending in webob.Request (or webtest.TestRequest) objects.</li>
93
<li>Fix handling forms with file uploads, when no file is selected.</li>
94
<li>Added <tt class="docutils literal"><span class="pre">extra_environ</span></tt> argument to <a class="reference internal" href="modules/webtest.html#webtest.TestResponse.click" title="webtest.TestResponse.click"><tt class="xref py py-meth docutils literal"><span class="pre">webtest.TestResponse.click()</span></tt></a>.</li>
95
<li>Fixed/added wildcard statuses, like <tt class="docutils literal"><span class="pre">status="4*"</span></tt></li>
96
<li>Fix file upload fields in forms: allow upload field to be empty.</li>
97
<li>Added support for single-quoted html attributes.</li>
98
<li><cite>TestResponse</cite> now has unicode support. It is turned on by default
99
for all responses with charset information. <strong>This is backward
100
incompatible change</strong> if you rely (e.g. in doctests) on parsed
101
form fields or responses returned by <cite>json</cite> and <cite>lxml</cite> methods
102
being encoded strings when charset header is in response. In order
103
to switch to old behaviour pass <cite>use_unicode=False</cite> flag to
104
<cite>TestApp</cite> constructor.</li>
107
<div class="section" id="id8">
108
<h2>1.2.1<a class="headerlink" href="#id8" title="Permalink to this headline">¶</a></h2>
110
<li>Added method <tt class="xref py py-meth docutils literal"><span class="pre">TestApp.request()</span></tt>, which can be used for
111
sending requests with different methods (e.g., <tt class="docutils literal"><span class="pre">MKCOL</span></tt>). This
112
method sends all its keyword arguments to
113
<tt class="xref py py-meth docutils literal"><span class="pre">webtest.TestRequest.blank()</span></tt> and then executes the request.
114
The parameters are somewhat different than other methods (like
115
<a class="reference internal" href="modules/webtest.html#webtest.TestApp.get" title="webtest.TestApp.get"><tt class="xref py py-meth docutils literal"><span class="pre">webtest.TestApp.get()</span></tt></a>), as they match WebOb’s attribute
116
names exactly (the other methods were written before WebOb existed).</li>
117
<li>Removed the copying of stdout to stderr during requests.</li>
118
<li>Fix file upload fields in forms (<a class="reference external" href="http://trac.pythonpaste.org/pythonpaste/ticket/340">#340</a>) – you could
119
upload files with <a class="reference internal" href="modules/webtest.html#webtest.TestApp.post" title="webtest.TestApp.post"><tt class="xref py py-meth docutils literal"><span class="pre">webtest.TestApp.post()</span></tt></a>, but if you use
120
<tt class="docutils literal"><span class="pre">resp.form</span></tt> file upload fields would not work (from rcs-comp.com
121
and Matthew Desmarais).</li>
124
<div class="section" id="id10">
125
<h2>1.2<a class="headerlink" href="#id10" title="Permalink to this headline">¶</a></h2>
127
<li>Fix form inputs; text inputs always default to the empty string, and
128
unselected radio inputs default to nothing at all. From Daniele
130
<li>Fix following links with fragments (these fragments should not be
131
sent to the WSGI application). From desmaj.</li>
132
<li>Added <tt class="docutils literal"><span class="pre">force_value</span></tt> to select fields, like
133
<tt class="docutils literal"><span class="pre">res.form['select'].force_value("new_value")</span></tt>. This makes it
134
possible to simulate forms that are dynamically updated. From
135
Matthew Desmarais.</li>
136
<li>Fixed <tt class="xref py py-meth docutils literal"><span class="pre">webtest.Response.mustcontain()</span></tt> when you pass in a
137
<tt class="docutils literal"><span class="pre">no=[strings]</span></tt> argument.</li>
140
<div class="section" id="id11">
141
<h2>1.1<a class="headerlink" href="#id11" title="Permalink to this headline">¶</a></h2>
143
<li>Changed the <tt class="docutils literal"><span class="pre">__str__</span></tt> of responses to make them more doctest
145
<li>All headers are displayed capitalized, like Content-Type</li>
146
<li>Headers are sorted alphabetically</li>
149
<li>Changed <tt class="docutils literal"><span class="pre">__repr__</span></tt> to only show the body length if the complete
150
body is not shown (for short bodies the complete body is in the
152
<li>Note: <strong>these are backward incompatible changes</strong> if you are using
153
doctest (you’ll have to update your doctests with the new format).</li>
154
<li>Fixed exception in the <tt class="docutils literal"><span class="pre">.delete</span></tt> method.</li>
155
<li>Added a <tt class="docutils literal"><span class="pre">content_type</span></tt> argument to <tt class="docutils literal"><span class="pre">app.post</span></tt> and <tt class="docutils literal"><span class="pre">app.put</span></tt>,
156
which sets the <tt class="docutils literal"><span class="pre">Content-Type</span></tt> of the request. This is more
157
convenient when testing REST APIs.</li>
158
<li>Skip links in <tt class="docutils literal"><span class="pre"><script>...</script></span></tt> tags (since that’s not real
162
<div class="section" id="id12">
163
<h2>1.0.2<a class="headerlink" href="#id12" title="Permalink to this headline">¶</a></h2>
165
<li>Don’t submit unnamed form fields.</li>
166
<li>Checkboxes with no explicit <tt class="docutils literal"><span class="pre">value</span></tt> send <tt class="docutils literal"><span class="pre">on</span></tt> (previously they
167
sent <tt class="docutils literal"><span class="pre">checked</span></tt>, which isn’t what browsers send).</li>
168
<li>Support for <tt class="docutils literal"><span class="pre"><select</span> <span class="pre">multiple></span></tt> fields (from Matthew Desmarais)</li>
173
<li>Fix the <tt class="docutils literal"><span class="pre">TestApp</span></tt> validator’s InputWrapper lacking support for
174
readline with an argument as needed by the cgi module.</li>
177
<div class="section" id="id13">
178
<h2>1.0<a class="headerlink" href="#id13" title="Permalink to this headline">¶</a></h2>
180
<li>Keep URLs in-tact in cases such as
181
<tt class="docutils literal"><span class="pre">app.get('http://www.python.org')</span></tt> (so HTTP_HOST=www.python.org,
183
<li>Fix <tt class="docutils literal"><span class="pre">lxml.html</span></tt> import, so lxml 2.0 users can get HTML lxml
184
objects from <tt class="docutils literal"><span class="pre">resp.lxml</span></tt></li>
185
<li>Treat <tt class="docutils literal"><span class="pre"><input</span> <span class="pre">type="image"></span></tt> like a submit button.</li>
186
<li>Use <tt class="docutils literal"><span class="pre">BaseCookie</span></tt> instead of <tt class="docutils literal"><span class="pre">SimpleCookie</span></tt> for storing cookies
187
(avoids quoting cookie values).</li>
188
<li>Accept any <tt class="docutils literal"><span class="pre">params</span></tt> argument that has an <tt class="docutils literal"><span class="pre">items</span></tt> method (like
192
<div class="section" id="id14">
193
<h2>0.9<a class="headerlink" href="#id14" title="Permalink to this headline">¶</a></h2>
194
<p>Initial release</p>
202
<div class="sphinxsidebar">
203
<div class="sphinxsidebarwrapper">
204
<h3><a href="index.html">Table Of Contents</a></h3>
206
<li><a class="reference internal" href="#">News</a><ul>
207
<li><a class="reference internal" href="#id1">1.2.5</a></li>
208
<li><a class="reference internal" href="#id2">1.2.4</a></li>
209
<li><a class="reference internal" href="#id5">1.2.3</a></li>
210
<li><a class="reference internal" href="#id7">1.2.2</a></li>
211
<li><a class="reference internal" href="#id8">1.2.1</a></li>
212
<li><a class="reference internal" href="#id10">1.2</a></li>
213
<li><a class="reference internal" href="#id11">1.1</a></li>
214
<li><a class="reference internal" href="#id12">1.0.2</a></li>
215
<li><a class="reference internal" href="#id13">1.0</a></li>
216
<li><a class="reference internal" href="#id14">0.9</a></li>
221
<h4>Previous topic</h4>
222
<p class="topless"><a href="index.html"
223
title="previous chapter">Testing Applications with WebTest</a></p>
225
<p class="topless"><a href="license.html"
226
title="next chapter">License</a></p>
228
<ul class="this-page-menu">
229
<li><a href="_sources/news.txt"
230
rel="nofollow">Show Source</a></li>
232
<div id="searchbox" style="display: none">
233
<h3>Quick search</h3>
234
<form class="search" action="search.html" method="get">
235
<input type="text" name="q" size="18" />
236
<input type="submit" value="Go" />
237
<input type="hidden" name="check_keywords" value="yes" />
238
<input type="hidden" name="area" value="default" />
240
<p class="searchtip" style="font-size: 90%">
241
Enter search terms or a module, class or function name.
244
<script type="text/javascript">$('#searchbox').show(0);</script>
247
<div class="clearer"></div>
249
<div class="related">
252
<li class="right" style="margin-right: 10px">
253
<a href="genindex.html" title="General Index"
256
<a href="py-modindex.html" title="Python Module Index"
259
<a href="license.html" title="License"
262
<a href="index.html" title="Testing Applications with WebTest"
264
<li><a href="index.html">WebTest v1.3 documentation</a> »</li>
268
© Copyright 2008, Ian Bicking.
269
Last updated on Aug 28, 2011.
270
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.7.
b'\\ No newline at end of file'