From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id AG/FJbjm4WHP/AAAgWs5BA (envelope-from ) for ; Fri, 14 Jan 2022 22:10:16 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id cMM1I7jm4WHaggEA9RJhRA (envelope-from ) for ; Fri, 14 Jan 2022 22:10:16 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 25FAFAAE3 for ; Fri, 14 Jan 2022 22:10:16 +0100 (CET) Received: from localhost ([::1]:46344 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n8Tpv-0004Z5-0p for larch@yhetil.org; Fri, 14 Jan 2022 16:10:15 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53644) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n8Tpk-0004YN-RA for guix-patches@gnu.org; Fri, 14 Jan 2022 16:10:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:45479) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n8Tpj-0001Dz-Gd for guix-patches@gnu.org; Fri, 14 Jan 2022 16:10:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n8Tpj-0005XA-Bx for guix-patches@gnu.org; Fri, 14 Jan 2022 16:10:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53179] [PATCH v2 3/3] gnu: Add python-pytest-httpx. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 14 Jan 2022 21:10:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53179 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53179@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 53179-submit@debbugs.gnu.org id=B53179.164219456921197 (code B ref 53179); Fri, 14 Jan 2022 21:10:03 +0000 Received: (at 53179) by debbugs.gnu.org; 14 Jan 2022 21:09:29 +0000 Received: from localhost ([127.0.0.1]:38380 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8Tp6-0005Vl-H5 for submit@debbugs.gnu.org; Fri, 14 Jan 2022 16:09:28 -0500 Received: from mout01.posteo.de ([185.67.36.65]:57593) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8Tp1-0005VG-Qe for 53179@debbugs.gnu.org; Fri, 14 Jan 2022 16:09:22 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 4AE39240027 for <53179@debbugs.gnu.org>; Fri, 14 Jan 2022 22:09:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1642194554; bh=zjtxGGCs2Clcvlkx96C77UERay4prSAZzEn+o7iMiQc=; h=From:To:Cc:Subject:Date:From; b=S4MMckDW6PnRlBPhoK2ZNepdHGK2XxD5yrX3XKXsPlM5gR7ZGSpcv6TSHYeAeiQcS s+hEo2T6tUN+JY7xbPwY+YovJRhrYX7AKaYSc0LdV/xoXCZDnOSAj2vZowWNWds2Xe AzNz9bL4djbRyeVlIBIz3iFXsWNmGJzrz+iI5iyEhEbOZfjcf1tv8asEU2hI4xGKaQ 6ElxxfkElNBwOsQ8xO6xoHMNd5DitRe4u23I/AVZV86P2lkffstJcfmklgmzK0rDfg +pWlPL36zATgB1dii/gDzmb3SAhrJUYxoHAjSucSTy//WFnzWp6+vRs13EdP89A/h8 BQeBOMzLlZ8VA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4JbDSR43YYz6tmb; Fri, 14 Jan 2022 22:09:11 +0100 (CET) From: Vinicius Monego Date: Fri, 14 Jan 2022 21:08:46 +0000 Message-Id: <20220114210846.171922-3-monego@posteo.net> In-Reply-To: <20220114210846.171922-1-monego@posteo.net> References: <20220114210846.171922-1-monego@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1642194616; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=ZkgeIxuhDzV21mIOFEgUqj5SfLhRYDRTTC634jTxTGA=; b=JEct0coQvhYR/AtR2heVxwuq6CELAyszhiugn5dWS3sgHtTQotvrVv5UTfpjXyxngbJel5 5yrwZkv/xrTwUyHL5aMuH0zZYk/W1aakNbyiWmJ50W93h4Wb10ezx9hCT6QExvE5X+mIry /o9iEHFeUFmK5lrKJ8qRXFB2eGYk6kNDXs21UfzvlUUGiJ8BFJjwA8iVgD0eP1a1REzRiZ 7tDzm2gQauk6urXjgkQ7Sv6a38DJ/9HhE793C92EcoLpenKx2zsTXzatxdjSvO8y8Ofv49 x8J4iAyPInJT+TZfVUzgtKDPIzPziQv1rZoXfaUymhh/54geDjMjKuSNW5p08Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642194616; a=rsa-sha256; cv=none; b=dEXa5AHyi1+VSZVyheV1OHydB/XaVEdqIHQ6wP5xr5OqrQ01UjYxLb7VWzinkjLdejUuGH nagWV1ceqkMnUhFOS71yZrCno/RJo1NZ/UhsmOmj1dNe1th95GnWrlY5IgNsMOzeqAB4Pw vg1ZF8v2+6pHJ5ia9SFaKnx+tnEZYmv1kwBaI4WgACbzFtGZsDXMNuEdhbN50Jd2RCrCjO wU+kVp28heTdVIsYC6rEtYmbupKDnQ/cykh8sn+qYfo6yepMAWOEle3IAb4VwRSj22emGq ROiErHVjGz44iGwDwDxgaEOPK8P8tDu1K2XDu5Vb3MJA6ijqBvNDARv27uxcpg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=S4MMckDW; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.12 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=S4MMckDW; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 25FAFAAE3 X-Spam-Score: -2.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: GJDQy8TcSqhF * gnu/packages/python-check.scm (python-pytest-httpx): New variable. --- gnu/packages/python-check.scm | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index 181aa8b05c..8df1dd67eb 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -7,7 +7,7 @@ ;;; Copyright © 2020 Julien Lepiller ;;; Copyright © 2020 Marius Bakke ;;; Copyright © 2020 Edouard Klein -;;; Copyright © 2020, 2021 Vinicius Monego +;;; Copyright © 2020, 2021, 2022 Vinicius Monego ;;; Copyright © 2020 Tanguy Le Carrour ;;; Copyright © 2021 Sharlatan Hellseher ;;; Copyright © 2021 Brendan Tildesley @@ -1789,6 +1789,38 @@ execution of a test suite. It will also store a history of all test runs to help in debugging failures and optimizing the scheduler to improve speed.") (license license:asl2.0))) +(define-public python-pytest-httpx + (package + (name "python-pytest-httpx") + (version "0.13.0") + (source + (origin + (method git-fetch) ; no tests in PyPI release + (uri (git-reference + (url "https://github.com/Colin-b/pytest_httpx") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0lh7df3ysxmjzvx6242xb6qiwpfxrnj70kjmw5sndvzmy5dfpxfc")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key inputs outputs tests? #:allow-other-keys) + (when tests? + (add-installed-pythonpath inputs outputs) + (invoke "python" "-m" "pytest"))))))) + (propagated-inputs + (list python-httpx)) + (native-inputs + (list python-pytest-asyncio python-pytest python-pytest-cov)) + (home-page "https://colin-b.github.io/pytest_httpx/") + (synopsis "Pytest fixture to mock HTTPX") + (description "This package provides a Pytest fixture that will make sure +every @code{httpx} request will be replied to with user provided responses.") + (license license:expat))) + ;; This is only used by python-sanic (define-public python-pytest-sanic (package -- 2.30.2