From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42475) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d3ll5-0003xo-1R for guix-patches@gnu.org; Thu, 27 Apr 2017 11:55:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d3ll1-0007Wu-RZ for guix-patches@gnu.org; Thu, 27 Apr 2017 11:55:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:44866) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d3ll1-0007Wp-Oo for guix-patches@gnu.org; Thu, 27 Apr 2017 11:55:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d3ll1-0004Dn-J6 for guix-patches@gnu.org; Thu, 27 Apr 2017 11:55:03 -0400 Subject: bug#26524: [PATCH 3/3] gnu: Add python-pytest-httpbin Resent-Message-ID: From: Muriithi Frederick Muriuki Date: Thu, 27 Apr 2017 18:55:13 +0300 Message-Id: <20170427155513.11856-3-fredmanglis@gmail.com> In-Reply-To: <20170427155513.11856-1-fredmanglis@gmail.com> References: <20170427155513.11856-1-fredmanglis@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 26524@debbugs.gnu.org * gnu/packages/web.scm (python-pytest-httpbin): New variable. --- gnu/packages/web.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 18a4d04..e3f59e6 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -4554,3 +4554,29 @@ GUI. It is based on PyQt5 and QtWebKit.") response. This exists to cover all kinds of HTTP scenarios. All endpoint responses are JSON-encoded.") (license l:isc))) + +(define-public python-pytest-httpbin + (package + (name "python-pytest-httpbin") + (version "0.2.3") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pytest-httpbin" version)) + (sha256 + (base32 + "1y0v2v7xpzpyd4djwp7ad8ifnlxp8r1y6dfbxg5ckzvllkgridn5")))) + (build-system python-build-system) + (propagated-inputs + `(("python-six" ,python-six) + ("python-httpbin" ,python-httpbin) + ("python-pytest" ,python-pytest))) + (home-page + "https://github.com/kevin1024/pytest-httpbin") + (synopsis + "Test your HTTP library against a local copy of httpbin") + (description + "@code{Pytest-httpbin} creates a @code{pytest} fixture that is dependency-injected +into your tests. It automatically starts up a HTTP server in a separate thread running +@code{httpbin} and provides your test with the URL in the fixture.") + (license l:expat))) -- 2.10.2