~noskcaj/ubuntu/vivid/webtest/merge2

« back to all changes in this revision

Viewing changes to docs/_build/news.html

  • Committer: Package Import Robot
  • Author(s): Piotr Ożarowski, Jakub Wilk, Piotr Ożarowski
  • Date: 2013-10-02 19:37:14 UTC
  • mfrom: (1.2.1) (14.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20131002193714-t0na13dhqrskvvff
Tags: 2.0.9-1
[ Jakub Wilk ]
* Use canonical URIs for Vcs-* fields.

[ Piotr Ożarowski ]
* New upstream release
  - bump minimum required Python version to 2.6
  - add python-six, python-waitress and python-bs4 to Depends
  - remove python-pastescript from Depends
  - remove python-simplejson and python-beautifulsoup from Recommends
  - add python-pyquery to Recommends
* Update debian/watch file to check for zip files
* Standards-Version bumped to 3.9.4 (no changes needed)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
 
3
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
 
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
 
 
6
 
<html xmlns="http://www.w3.org/1999/xhtml">
7
 
  <head>
8
 
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9
 
    
10
 
    <title>News &mdash; 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 = {
15
 
        URL_ROOT:    '',
16
 
        VERSION:     '1.3',
17
 
        COLLAPSE_INDEX: false,
18
 
        FILE_SUFFIX: '.html',
19
 
        HAS_SOURCE:  true
20
 
      };
21
 
    </script>
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" /> 
28
 
  </head>
29
 
  <body>
30
 
    <div class="related">
31
 
      <h3>Navigation</h3>
32
 
      <ul>
33
 
        <li class="right" style="margin-right: 10px">
34
 
          <a href="genindex.html" title="General Index"
35
 
             accesskey="I">index</a></li>
36
 
        <li class="right" >
37
 
          <a href="py-modindex.html" title="Python Module Index"
38
 
             >modules</a> |</li>
39
 
        <li class="right" >
40
 
          <a href="license.html" title="License"
41
 
             accesskey="N">next</a> |</li>
42
 
        <li class="right" >
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> &raquo;</li> 
46
 
      </ul>
47
 
    </div>  
48
 
 
49
 
    <div class="document">
50
 
      <div class="documentwrapper">
51
 
        <div class="bodywrapper">
52
 
          <div class="body">
53
 
            
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>
58
 
<ul class="simple">
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>
61
 
</ul>
62
 
</div>
63
 
<div class="section" id="id2">
64
 
<h2>1.2.4<a class="headerlink" href="#id2" title="Permalink to this headline">¶</a></h2>
65
 
<ul class="simple">
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>
73
 
</ul>
74
 
</div>
75
 
<div class="section" id="id5">
76
 
<h2>1.2.3<a class="headerlink" href="#id5" title="Permalink to this headline">¶</a></h2>
77
 
<ul class="simple">
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&#8217;t take precedence over a WSGI
80
 
environment passed in through the request.</li>
81
 
<li>Removed stray print</li>
82
 
</ul>
83
 
</div>
84
 
<div class="section" id="id7">
85
 
<h2>1.2.2<a class="headerlink" href="#id7" title="Permalink to this headline">¶</a></h2>
86
 
<ul class="simple">
87
 
<li>Revert change to cookies that would add <tt class="docutils literal"><span class="pre">&quot;</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=&quot;4*&quot;</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>
105
 
</ul>
106
 
</div>
107
 
<div class="section" id="id8">
108
 
<h2>1.2.1<a class="headerlink" href="#id8" title="Permalink to this headline">¶</a></h2>
109
 
<ul class="simple">
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&#8217;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>) &#8211; 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>
122
 
</ul>
123
 
</div>
124
 
<div class="section" id="id10">
125
 
<h2>1.2<a class="headerlink" href="#id10" title="Permalink to this headline">¶</a></h2>
126
 
<ul class="simple">
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
129
 
Paolella.</li>
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(&quot;new_value&quot;)</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>
138
 
</ul>
139
 
</div>
140
 
<div class="section" id="id11">
141
 
<h2>1.1<a class="headerlink" href="#id11" title="Permalink to this headline">¶</a></h2>
142
 
<ul class="simple">
143
 
<li>Changed the <tt class="docutils literal"><span class="pre">__str__</span></tt> of responses to make them more doctest
144
 
friendly:<ul>
145
 
<li>All headers are displayed capitalized, like Content-Type</li>
146
 
<li>Headers are sorted alphabetically</li>
147
 
</ul>
148
 
</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
151
 
repr)</li>
152
 
<li>Note: <strong>these are backward incompatible changes</strong> if you are using
153
 
doctest (you&#8217;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">&lt;script&gt;...&lt;/script&gt;</span></tt> tags (since that&#8217;s not real
159
 
markup).</li>
160
 
</ul>
161
 
</div>
162
 
<div class="section" id="id12">
163
 
<h2>1.0.2<a class="headerlink" href="#id12" title="Permalink to this headline">¶</a></h2>
164
 
<ul class="simple">
165
 
<li>Don&#8217;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&#8217;t what browsers send).</li>
168
 
<li>Support for <tt class="docutils literal"><span class="pre">&lt;select</span> <span class="pre">multiple&gt;</span></tt> fields (from Matthew Desmarais)</li>
169
 
</ul>
170
 
<p>1.0.1
171
 
&#8212;</p>
172
 
<ul class="simple">
173
 
<li>Fix the <tt class="docutils literal"><span class="pre">TestApp</span></tt> validator&#8217;s InputWrapper lacking support for
174
 
readline with an argument as needed by the cgi module.</li>
175
 
</ul>
176
 
</div>
177
 
<div class="section" id="id13">
178
 
<h2>1.0<a class="headerlink" href="#id13" title="Permalink to this headline">¶</a></h2>
179
 
<ul class="simple">
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,
182
 
etc).</li>
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">&lt;input</span> <span class="pre">type=&quot;image&quot;&gt;</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
189
 
MultiDict)</li>
190
 
</ul>
191
 
</div>
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>
195
 
</div>
196
 
</div>
197
 
 
198
 
 
199
 
          </div>
200
 
        </div>
201
 
      </div>
202
 
      <div class="sphinxsidebar">
203
 
        <div class="sphinxsidebarwrapper">
204
 
  <h3><a href="index.html">Table Of Contents</a></h3>
205
 
  <ul>
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>
217
 
</ul>
218
 
</li>
219
 
</ul>
220
 
 
221
 
  <h4>Previous topic</h4>
222
 
  <p class="topless"><a href="index.html"
223
 
                        title="previous chapter">Testing Applications with WebTest</a></p>
224
 
  <h4>Next topic</h4>
225
 
  <p class="topless"><a href="license.html"
226
 
                        title="next chapter">License</a></p>
227
 
  <h3>This Page</h3>
228
 
  <ul class="this-page-menu">
229
 
    <li><a href="_sources/news.txt"
230
 
           rel="nofollow">Show Source</a></li>
231
 
  </ul>
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" />
239
 
    </form>
240
 
    <p class="searchtip" style="font-size: 90%">
241
 
    Enter search terms or a module, class or function name.
242
 
    </p>
243
 
</div>
244
 
<script type="text/javascript">$('#searchbox').show(0);</script>
245
 
        </div>
246
 
      </div>
247
 
      <div class="clearer"></div>
248
 
    </div>
249
 
    <div class="related">
250
 
      <h3>Navigation</h3>
251
 
      <ul>
252
 
        <li class="right" style="margin-right: 10px">
253
 
          <a href="genindex.html" title="General Index"
254
 
             >index</a></li>
255
 
        <li class="right" >
256
 
          <a href="py-modindex.html" title="Python Module Index"
257
 
             >modules</a> |</li>
258
 
        <li class="right" >
259
 
          <a href="license.html" title="License"
260
 
             >next</a> |</li>
261
 
        <li class="right" >
262
 
          <a href="index.html" title="Testing Applications with WebTest"
263
 
             >previous</a> |</li>
264
 
        <li><a href="index.html">WebTest v1.3 documentation</a> &raquo;</li> 
265
 
      </ul>
266
 
    </div>
267
 
    <div class="footer">
268
 
        &copy; 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.
271
 
    </div>
272
 
  </body>
273
 
</html>
 
 
b'\\ No newline at end of file'