<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Thanks Dan,<br>
    <br>
    <div class="moz-cite-prefix">Le 02/11/2016 à 19:10, Daniel Bradburn
      a écrit :<br>
    </div>
    <blockquote
cite="mid:CAO-QhwsDG9ZDigc2LKTjZHzMwn0vQy_E-=oOi1_Vd2e339g0=g@mail.gmail.com"
      type="cite">
      <p dir="ltr">Hi Sylvain, perhaps the responses library might be of
        use to you for mocking the requests library</p>
      <p dir="ltr"><a moz-do-not-send="true"
          href="https://pypi.python.org/pypi/responses">https://pypi.python.org/pypi/responses</a></p>
    </blockquote>
    <br>
    I finally followed your hint, quite simple, I recorded server
    expectation, and served it back in my test.<br>
    <br>
    <a
href="https://github.com/opensource-expert/powerdns-shell-wrapper/blob/dev-override-cmd-line/test/test_pdns_zone.py#L126">https://github.com/opensource-expert/powerdns-shell-wrapper/blob/dev-override-cmd-line/test/test_pdns_zone.py#L126</a><br>
    <br>
    I added functional testing with <a
      href="https://github.com/sstephenson/bats/">bats</a>, which is a
    bash testing framework (a bit slow), I did not setup a testing
    server, and used local production server…<br>
    <br>
    Have a nice day,<br>
    Sylvain.<br>
    <pre class="moz-signature" cols="72">-- 
Sylvain Viart - DevOps système linux - freelance developer</pre>
  </body>
</html>