<!DOCTYPE html> <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Release Notes — HTTPretty 0.9.6 documentation</title> <script type="text/javascript" src="_static/js/modernizr.min.js"></script> <script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script> <script type="text/javascript" src="_static/jquery.js"></script> <script type="text/javascript" src="_static/underscore.js"></script> <script type="text/javascript" src="_static/doctools.js"></script> <script type="text/javascript" src="_static/language_data.js"></script> <script type="text/javascript" src="_static/js/theme.js"></script> <link rel="stylesheet" href="_static/css/theme.css" type="text/css" /> <link rel="stylesheet" href="_static/pygments.css" type="text/css" /> <link rel="index" title="Index" href="genindex.html" /> <link rel="search" title="Search" href="search.html" /> <link rel="prev" title="Hacking on HTTPretty" href="contributing.html" /> </head> <body class="wy-body-for-nav"> <div class="wy-grid-for-nav"> <nav data-toggle="wy-nav-shift" class="wy-nav-side"> <div class="wy-side-scroll"> <div class="wy-side-nav-search" > <a href="index.html" class="icon icon-home"> HTTPretty </a> <div class="version"> 0.9.6 </div> <div role="search"> <form id="rtd-search-form" class="wy-form" action="search.html" method="get"> <input type="text" name="q" placeholder="Search docs" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> </div> </div> <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation"> <ul class="current"> <li class="toctree-l1"><a class="reference internal" href="introduction.html">What is HTTPretty ?</a></li> <li class="toctree-l1"><a class="reference internal" href="introduction.html#demo">Demo</a></li> <li class="toctree-l1"><a class="reference internal" href="introduction.html#motivation">Motivation</a></li> <li class="toctree-l1"><a class="reference internal" href="acks.html">Acknowledgements</a></li> <li class="toctree-l1"><a class="reference internal" href="api.html">API Reference</a></li> <li class="toctree-l1"><a class="reference internal" href="api.html#modules">Modules</a></li> <li class="toctree-l1"><a class="reference internal" href="contributing.html">Hacking on HTTPretty</a></li> <li class="toctree-l1"><a class="reference internal" href="contributing.html#license">License</a></li> <li class="toctree-l1"><a class="reference internal" href="contributing.html#main-contributors">Main contributors</a></li> <li class="toctree-l1 current"><a class="current reference internal" href="#">Release Notes</a><ul> <li class="toctree-l2"><a class="reference internal" href="#id1">0.9.4</a></li> <li class="toctree-l2"><a class="reference internal" href="#id2">0.8.4</a></li> <li class="toctree-l2"><a class="reference internal" href="#id3">0.6.5</a></li> <li class="toctree-l2"><a class="reference internal" href="#id4">0.6.2</a></li> <li class="toctree-l2"><a class="reference internal" href="#id5">0.6.1</a></li> <li class="toctree-l2"><a class="reference internal" href="#id6">0.5.14</a></li> <li class="toctree-l2"><a class="reference internal" href="#id7">0.5.12</a></li> <li class="toctree-l2"><a class="reference internal" href="#id8">0.5.11</a></li> <li class="toctree-l2"><a class="reference internal" href="#id9">0.5.10</a></li> <li class="toctree-l2"><a class="reference internal" href="#id10">0.5.9</a></li> <li class="toctree-l2"><a class="reference internal" href="#id11">0.5.8</a></li> </ul> </li> </ul> </div> </div> </nav> <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"> <nav class="wy-nav-top" aria-label="top navigation"> <i data-toggle="wy-nav-top" class="fa fa-bars"></i> <a href="index.html">HTTPretty</a> </nav> <div class="wy-nav-content"> <div class="rst-content"> <div role="navigation" aria-label="breadcrumbs navigation"> <ul class="wy-breadcrumbs"> <li><a href="index.html">Docs</a> »</li> <li>Release Notes</li> <li class="wy-breadcrumbs-aside"> <a href="_sources/changelog.rst.txt" rel="nofollow"> View page source</a> </li> </ul> <hr/> </div> <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article"> <div itemprop="articleBody"> <div class="section" id="release-notes"> <h1>Release Notes<a class="headerlink" href="#release-notes" title="Permalink to this headline">¶</a></h1> <div class="section" id="id1"> <h2>0.9.4<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h2> <p>Improvements:</p> <ul class="simple"> <li>Official Python 3.6 support</li> <li>Normalized coding style to comform with PEP8 (partially)</li> <li>Add more API reference coverage in docstrings of members such as <a class="reference internal" href="api.html#httpretty.core.Entry" title="httpretty.core.Entry"><code class="xref py py-class docutils literal notranslate"><span class="pre">httpretty.core.Entry</span></code></a></li> <li>Continuous Integration building python 2.7 and 3.6</li> <li>Migrate from <a class="reference external" href="https://pypi.org/project/pip/">pip</a> to <a class="reference external" href="https://docs.pipenv.org/">pipenv</a></li> </ul> </div> <div class="section" id="id2"> <h2>0.8.4<a class="headerlink" href="#id2" title="Permalink to this headline">¶</a></h2> <p>Improvements:</p> <ul class="simple"> <li>Refactored <code class="docutils literal notranslate"><span class="pre">core.py</span></code> and increased its unit test coverage to 80%. HTTPretty is slightly more robust now.</li> </ul> <p>Bug fixes:</p> <ul class="simple"> <li>POST requests being called twice <a class="reference external" href="https://github.com/gabrielfalcao/HTTPretty/pull/100">#100</a></li> </ul> </div> <div class="section" id="id3"> <h2>0.6.5<a class="headerlink" href="#id3" title="Permalink to this headline">¶</a></h2> <p>Applied pull requests:</p> <ul class="simple"> <li>continue on EAGAIN socket errors: <a class="reference external" href="https://github.com/gabrielfalcao/HTTPretty/pull/102">#102</a> by <a class="reference external" href="http://github.com/kouk">kouk</a>.</li> <li>Fix <code class="docutils literal notranslate"><span class="pre">fake_gethostbyname</span></code> for requests 2.0: <a class="reference external" href="https://github.com/gabrielfalcao/HTTPretty/pull/101">#101</a> by <a class="reference external" href="http://github.com/mgood">mgood</a></li> <li>Add a way to match the querystrings: <a class="reference external" href="https://github.com/gabrielfalcao/HTTPretty/pull/98">#98</a> by <a class="reference external" href="http://github.com/ametaireau">ametaireau</a></li> <li>Use common string case for URIInfo hostname comparison: <a class="reference external" href="https://github.com/gabrielfalcao/HTTPretty/pull/95">#95</a> by <a class="reference external" href="http://github.com/mikewaters">mikewaters</a></li> <li>Expose httpretty.reset() to public API: <a class="reference external" href="https://github.com/gabrielfalcao/HTTPretty/pull/91">#91</a> by <a class="reference external" href="http://github.com/imankulov">imankulov</a></li> <li>Don’t duplicate http ports number: <a class="reference external" href="https://github.com/gabrielfalcao/HTTPretty/pull/89">#89</a> by <a class="reference external" href="http://github.com/mardiros">mardiros</a></li> <li>Adding parsed_body parameter to simplify checks: <a class="reference external" href="https://github.com/gabrielfalcao/HTTPretty/pull/88">#88</a> by <a class="reference external" href="http://github.com/toumorokoshi">toumorokoshi</a></li> <li>Use the real socket if it’s not HTTP: <a class="reference external" href="https://github.com/gabrielfalcao/HTTPretty/pull/87">#87</a> by <a class="reference external" href="http://github.com/mardiros">mardiros</a></li> </ul> </div> <div class="section" id="id4"> <h2>0.6.2<a class="headerlink" href="#id4" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li>Fixing bug of lack of trailing slashes <a class="reference external" href="https://github.com/gabrielfalcao/HTTPretty/issues/73">#73</a></li> <li>Applied pull requests <a class="reference external" href="https://github.com/gabrielfalcao/HTTPretty/pull/71">#71</a> and <a class="reference external" href="https://github.com/gabrielfalcao/HTTPretty/pull/72">#72</a> by @andresriancho</li> <li>Keyword arg coercion fix by @dupuy</li> <li>@papaeye fixed content-length calculation.</li> </ul> </div> <div class="section" id="id5"> <h2>0.6.1<a class="headerlink" href="#id5" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li>New API, no more camel case and everything is available through a simple import:</li> </ul> <div class="code python highlight-default notranslate"><div class="highlight"><pre><span></span><span class="kn">import</span> <span class="nn">httpretty</span> <span class="nd">@httpretty</span><span class="o">.</span><span class="n">activate</span> <span class="k">def</span> <span class="nf">test_function</span><span class="p">():</span> <span class="c1"># httpretty.register_uri(...)</span> <span class="c1"># make request...</span> <span class="k">pass</span> </pre></div> </div> <ul class="simple"> <li>Re-organized module into submodules</li> </ul> </div> <div class="section" id="id6"> <h2>0.5.14<a class="headerlink" href="#id6" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li>Delegate calls to other methods on socket</li> <li><a class="reference external" href="https://github.com/gabrielfalcao/HTTPretty/pull/49">Normalized header</a> strings</li> <li>Callbacks are <a class="reference external" href="https://github.com/gabrielfalcao/HTTPretty/pull/47">more intelligent now</a></li> <li>Normalize urls matching for url quoting</li> </ul> </div> <div class="section" id="id7"> <h2>0.5.12<a class="headerlink" href="#id7" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li>HTTPretty doesn’t hang when using other application protocols under a @httprettified decorated test.</li> </ul> </div> <div class="section" id="id8"> <h2>0.5.11<a class="headerlink" href="#id8" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li>Ability to know whether HTTPretty is or not enabled through <code class="docutils literal notranslate"><span class="pre">httpretty.is_enabled()</span></code></li> </ul> </div> <div class="section" id="id9"> <h2>0.5.10<a class="headerlink" href="#id9" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li>Support to multiple methods per registered URL. Thanks @hughsaunders</li> </ul> </div> <div class="section" id="id10"> <h2>0.5.9<a class="headerlink" href="#id10" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li>Fixed python 3 support. Thanks @spulec</li> </ul> </div> <div class="section" id="id11"> <h2>0.5.8<a class="headerlink" href="#id11" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li>Support to <a class="reference external" href="#matching-regular-expressions">register regular expressions to match urls</a></li> <li><a class="reference external" href="#dynamic-responses-through-callbacks">Body callback</a> suppport</li> <li>Python 3 support</li> </ul> </div> </div> </div> </div> <footer> <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation"> <a href="contributing.html" class="btn btn-neutral float-left" title="Hacking on HTTPretty" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a> </div> <hr/> <div role="contentinfo"> <p> © Copyright 2018, Gabriel Falcao </p> </div> Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. </footer> </div> </div> </section> </div> <script type="text/javascript"> jQuery(function () { SphinxRtdTheme.Navigation.enable(true); }); </script> </body> </html>