PageRenderTime 60ms CodeModel.GetById 31ms RepoModel.GetById 0ms app.codeStats 0ms

/WebTest-1.3.4/docs/_build/news.html

#
HTML | 273 lines | 264 code | 9 blank | 0 comment | 0 complexity | 43a606748eebadbc45e866445e19397d MD5 | raw file
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title>News &mdash; WebTest v1.3 documentation</title>
  7. <link rel="stylesheet" href="_static/default.css" type="text/css" />
  8. <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
  9. <script type="text/javascript">
  10. var DOCUMENTATION_OPTIONS = {
  11. URL_ROOT: '',
  12. VERSION: '1.3',
  13. COLLAPSE_INDEX: false,
  14. FILE_SUFFIX: '.html',
  15. HAS_SOURCE: true
  16. };
  17. </script>
  18. <script type="text/javascript" src="_static/jquery.js"></script>
  19. <script type="text/javascript" src="_static/underscore.js"></script>
  20. <script type="text/javascript" src="_static/doctools.js"></script>
  21. <link rel="top" title="WebTest v1.3 documentation" href="index.html" />
  22. <link rel="next" title="License" href="license.html" />
  23. <link rel="prev" title="Testing Applications with WebTest" href="index.html" />
  24. </head>
  25. <body>
  26. <div class="related">
  27. <h3>Navigation</h3>
  28. <ul>
  29. <li class="right" style="margin-right: 10px">
  30. <a href="genindex.html" title="General Index"
  31. accesskey="I">index</a></li>
  32. <li class="right" >
  33. <a href="py-modindex.html" title="Python Module Index"
  34. >modules</a> |</li>
  35. <li class="right" >
  36. <a href="license.html" title="License"
  37. accesskey="N">next</a> |</li>
  38. <li class="right" >
  39. <a href="index.html" title="Testing Applications with WebTest"
  40. accesskey="P">previous</a> |</li>
  41. <li><a href="index.html">WebTest v1.3 documentation</a> &raquo;</li>
  42. </ul>
  43. </div>
  44. <div class="document">
  45. <div class="documentwrapper">
  46. <div class="bodywrapper">
  47. <div class="body">
  48. <div class="section" id="news">
  49. <h1>News<a class="headerlink" href="#news" title="Permalink to this headline">ś</a></h1>
  50. <div class="section" id="id1">
  51. <h2>1.2.5<a class="headerlink" href="#id1" title="Permalink to this headline">ś</a></h2>
  52. <ul class="simple">
  53. <li>Moved TestApp to app.py</li>
  54. <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>
  55. </ul>
  56. </div>
  57. <div class="section" id="id2">
  58. <h2>1.2.4<a class="headerlink" href="#id2" title="Permalink to this headline">ś</a></h2>
  59. <ul class="simple">
  60. <li>Accept lists for <tt class="docutils literal"><span class="pre">app.post(url,</span> <span class="pre">params=[...])</span></tt></li>
  61. <li>Allow to use url that starts with the SCRIPT_NAME found in extra_environ</li>
  62. <li>Fix <a class="reference external" href="https://bitbucket.org/ianb/webtest/issue/16">#16</a> Default
  63. content-type is now correctly set to <cite>application/octet-stream</cite></li>
  64. <li>Fix <a class="reference external" href="https://bitbucket.org/ianb/webtest/issue/18">#14 and #18</a> Allow to use
  65. <cite>.delete(params={})</cite></li>
  66. <li>Fix <a class="reference external" href="https://bitbucket.org/ianb/webtest/issue/12">#12</a></li>
  67. </ul>
  68. </div>
  69. <div class="section" id="id5">
  70. <h2>1.2.3<a class="headerlink" href="#id5" title="Permalink to this headline">ś</a></h2>
  71. <ul class="simple">
  72. <li>Fix <a class="reference external" href="http://bitbucket.org/ianb/webtest/issue/10/testapprequest-method-overwrites-specifics-with-testapp-scoped">#10</a>,
  73. now <cite>TestApp.extra_environ</cite> doesn&#8217;t take precedence over a WSGI
  74. environment passed in through the request.</li>
  75. <li>Removed stray print</li>
  76. </ul>
  77. </div>
  78. <div class="section" id="id7">
  79. <h2>1.2.2<a class="headerlink" href="#id7" title="Permalink to this headline">ś</a></h2>
  80. <ul class="simple">
  81. <li>Revert change to cookies that would add <tt class="docutils literal"><span class="pre">&quot;</span></tt> around cookie values.</li>
  82. <li>Added property <tt class="xref py py-meth docutils literal"><span class="pre">webtest.Response.pyquery()</span></tt> which returns a
  83. <a class="reference external" href="http://pyquery.org/">PyQuery</a> object.</li>
  84. <li>Set base_url on <tt class="docutils literal"><span class="pre">resp.lxml</span></tt></li>
  85. <li>Include tests and docs in tarball.</li>
  86. <li>Fix sending in webob.Request (or webtest.TestRequest) objects.</li>
  87. <li>Fix handling forms with file uploads, when no file is selected.</li>
  88. <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>
  89. <li>Fixed/added wildcard statuses, like <tt class="docutils literal"><span class="pre">status=&quot;4*&quot;</span></tt></li>
  90. <li>Fix file upload fields in forms: allow upload field to be empty.</li>
  91. <li>Added support for single-quoted html attributes.</li>
  92. <li><cite>TestResponse</cite> now has unicode support. It is turned on by default
  93. for all responses with charset information. <strong>This is backward
  94. incompatible change</strong> if you rely (e.g. in doctests) on parsed
  95. form fields or responses returned by <cite>json</cite> and <cite>lxml</cite> methods
  96. being encoded strings when charset header is in response. In order
  97. to switch to old behaviour pass <cite>use_unicode=False</cite> flag to
  98. <cite>TestApp</cite> constructor.</li>
  99. </ul>
  100. </div>
  101. <div class="section" id="id8">
  102. <h2>1.2.1<a class="headerlink" href="#id8" title="Permalink to this headline">ś</a></h2>
  103. <ul class="simple">
  104. <li>Added method <tt class="xref py py-meth docutils literal"><span class="pre">TestApp.request()</span></tt>, which can be used for
  105. sending requests with different methods (e.g., <tt class="docutils literal"><span class="pre">MKCOL</span></tt>). This
  106. method sends all its keyword arguments to
  107. <tt class="xref py py-meth docutils literal"><span class="pre">webtest.TestRequest.blank()</span></tt> and then executes the request.
  108. The parameters are somewhat different than other methods (like
  109. <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
  110. names exactly (the other methods were written before WebOb existed).</li>
  111. <li>Removed the copying of stdout to stderr during requests.</li>
  112. <li>Fix file upload fields in forms (<a class="reference external" href="http://trac.pythonpaste.org/pythonpaste/ticket/340">#340</a>) &#8211; you could
  113. 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
  114. <tt class="docutils literal"><span class="pre">resp.form</span></tt> file upload fields would not work (from rcs-comp.com
  115. and Matthew Desmarais).</li>
  116. </ul>
  117. </div>
  118. <div class="section" id="id10">
  119. <h2>1.2<a class="headerlink" href="#id10" title="Permalink to this headline">ś</a></h2>
  120. <ul class="simple">
  121. <li>Fix form inputs; text inputs always default to the empty string, and
  122. unselected radio inputs default to nothing at all. From Daniele
  123. Paolella.</li>
  124. <li>Fix following links with fragments (these fragments should not be
  125. sent to the WSGI application). From desmaj.</li>
  126. <li>Added <tt class="docutils literal"><span class="pre">force_value</span></tt> to select fields, like
  127. <tt class="docutils literal"><span class="pre">res.form['select'].force_value(&quot;new_value&quot;)</span></tt>. This makes it
  128. possible to simulate forms that are dynamically updated. From
  129. Matthew Desmarais.</li>
  130. <li>Fixed <tt class="xref py py-meth docutils literal"><span class="pre">webtest.Response.mustcontain()</span></tt> when you pass in a
  131. <tt class="docutils literal"><span class="pre">no=[strings]</span></tt> argument.</li>
  132. </ul>
  133. </div>
  134. <div class="section" id="id11">
  135. <h2>1.1<a class="headerlink" href="#id11" title="Permalink to this headline">ś</a></h2>
  136. <ul class="simple">
  137. <li>Changed the <tt class="docutils literal"><span class="pre">__str__</span></tt> of responses to make them more doctest
  138. friendly:<ul>
  139. <li>All headers are displayed capitalized, like Content-Type</li>
  140. <li>Headers are sorted alphabetically</li>
  141. </ul>
  142. </li>
  143. <li>Changed <tt class="docutils literal"><span class="pre">__repr__</span></tt> to only show the body length if the complete
  144. body is not shown (for short bodies the complete body is in the
  145. repr)</li>
  146. <li>Note: <strong>these are backward incompatible changes</strong> if you are using
  147. doctest (you&#8217;ll have to update your doctests with the new format).</li>
  148. <li>Fixed exception in the <tt class="docutils literal"><span class="pre">.delete</span></tt> method.</li>
  149. <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>,
  150. which sets the <tt class="docutils literal"><span class="pre">Content-Type</span></tt> of the request. This is more
  151. convenient when testing REST APIs.</li>
  152. <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
  153. markup).</li>
  154. </ul>
  155. </div>
  156. <div class="section" id="id12">
  157. <h2>1.0.2<a class="headerlink" href="#id12" title="Permalink to this headline">ś</a></h2>
  158. <ul class="simple">
  159. <li>Don&#8217;t submit unnamed form fields.</li>
  160. <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
  161. sent <tt class="docutils literal"><span class="pre">checked</span></tt>, which isn&#8217;t what browsers send).</li>
  162. <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>
  163. </ul>
  164. <p>1.0.1
  165. &#8212;</p>
  166. <ul class="simple">
  167. <li>Fix the <tt class="docutils literal"><span class="pre">TestApp</span></tt> validator&#8217;s InputWrapper lacking support for
  168. readline with an argument as needed by the cgi module.</li>
  169. </ul>
  170. </div>
  171. <div class="section" id="id13">
  172. <h2>1.0<a class="headerlink" href="#id13" title="Permalink to this headline">ś</a></h2>
  173. <ul class="simple">
  174. <li>Keep URLs in-tact in cases such as
  175. <tt class="docutils literal"><span class="pre">app.get('http://www.python.org')</span></tt> (so HTTP_HOST=www.python.org,
  176. etc).</li>
  177. <li>Fix <tt class="docutils literal"><span class="pre">lxml.html</span></tt> import, so lxml 2.0 users can get HTML lxml
  178. objects from <tt class="docutils literal"><span class="pre">resp.lxml</span></tt></li>
  179. <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>
  180. <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
  181. (avoids quoting cookie values).</li>
  182. <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
  183. MultiDict)</li>
  184. </ul>
  185. </div>
  186. <div class="section" id="id14">
  187. <h2>0.9<a class="headerlink" href="#id14" title="Permalink to this headline">ś</a></h2>
  188. <p>Initial release</p>
  189. </div>
  190. </div>
  191. </div>
  192. </div>
  193. </div>
  194. <div class="sphinxsidebar">
  195. <div class="sphinxsidebarwrapper">
  196. <h3><a href="index.html">Table Of Contents</a></h3>
  197. <ul>
  198. <li><a class="reference internal" href="#">News</a><ul>
  199. <li><a class="reference internal" href="#id1">1.2.5</a></li>
  200. <li><a class="reference internal" href="#id2">1.2.4</a></li>
  201. <li><a class="reference internal" href="#id5">1.2.3</a></li>
  202. <li><a class="reference internal" href="#id7">1.2.2</a></li>
  203. <li><a class="reference internal" href="#id8">1.2.1</a></li>
  204. <li><a class="reference internal" href="#id10">1.2</a></li>
  205. <li><a class="reference internal" href="#id11">1.1</a></li>
  206. <li><a class="reference internal" href="#id12">1.0.2</a></li>
  207. <li><a class="reference internal" href="#id13">1.0</a></li>
  208. <li><a class="reference internal" href="#id14">0.9</a></li>
  209. </ul>
  210. </li>
  211. </ul>
  212. <h4>Previous topic</h4>
  213. <p class="topless"><a href="index.html"
  214. title="previous chapter">Testing Applications with WebTest</a></p>
  215. <h4>Next topic</h4>
  216. <p class="topless"><a href="license.html"
  217. title="next chapter">License</a></p>
  218. <h3>This Page</h3>
  219. <ul class="this-page-menu">
  220. <li><a href="_sources/news.txt"
  221. rel="nofollow">Show Source</a></li>
  222. </ul>
  223. <div id="searchbox" style="display: none">
  224. <h3>Quick search</h3>
  225. <form class="search" action="search.html" method="get">
  226. <input type="text" name="q" size="18" />
  227. <input type="submit" value="Go" />
  228. <input type="hidden" name="check_keywords" value="yes" />
  229. <input type="hidden" name="area" value="default" />
  230. </form>
  231. <p class="searchtip" style="font-size: 90%">
  232. Enter search terms or a module, class or function name.
  233. </p>
  234. </div>
  235. <script type="text/javascript">$('#searchbox').show(0);</script>
  236. </div>
  237. </div>
  238. <div class="clearer"></div>
  239. </div>
  240. <div class="related">
  241. <h3>Navigation</h3>
  242. <ul>
  243. <li class="right" style="margin-right: 10px">
  244. <a href="genindex.html" title="General Index"
  245. >index</a></li>
  246. <li class="right" >
  247. <a href="py-modindex.html" title="Python Module Index"
  248. >modules</a> |</li>
  249. <li class="right" >
  250. <a href="license.html" title="License"
  251. >next</a> |</li>
  252. <li class="right" >
  253. <a href="index.html" title="Testing Applications with WebTest"
  254. >previous</a> |</li>
  255. <li><a href="index.html">WebTest v1.3 documentation</a> &raquo;</li>
  256. </ul>
  257. </div>
  258. <div class="footer">
  259. &copy; Copyright 2008, Ian Bicking.
  260. Last updated on Aug 28, 2011.
  261. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.7.
  262. </div>
  263. </body>
  264. </html>