From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +ORGBNQU3WFRNQEAgWs5BA (envelope-from ) for ; Tue, 11 Jan 2022 06:25:40 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id yEuLONMU3WFh2AAAG6o9tA (envelope-from ) for ; Tue, 11 Jan 2022 06:25:39 +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 970D03CD7E for ; Tue, 11 Jan 2022 06:25:39 +0100 (CET) Received: from localhost ([::1]:34950 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n79f8-00007t-Lq for larch@yhetil.org; Tue, 11 Jan 2022 00:25:38 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36426) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n79eZ-00005T-TI for guix-patches@gnu.org; Tue, 11 Jan 2022 00:25:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:60989) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n79eZ-0001T6-KG for guix-patches@gnu.org; Tue, 11 Jan 2022 00:25:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n79eZ-0004qb-G8 for guix-patches@gnu.org; Tue, 11 Jan 2022 00:25:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53179] [PATCH 3/3] gnu: Add python-pytest-httpx. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 11 Jan 2022 05:25: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.164187870218614 (code B ref 53179); Tue, 11 Jan 2022 05:25:03 +0000 Received: (at 53179) by debbugs.gnu.org; 11 Jan 2022 05:25:02 +0000 Received: from localhost ([127.0.0.1]:53890 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n79eS-0004pv-Pg for submit@debbugs.gnu.org; Tue, 11 Jan 2022 00:25:01 -0500 Received: from mout01.posteo.de ([185.67.36.65]:55313) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n79eN-0004pI-To for 53179@debbugs.gnu.org; Tue, 11 Jan 2022 00:24:52 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 5E87A240029 for <53179@debbugs.gnu.org>; Tue, 11 Jan 2022 06:24:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1641878686; bh=BaiKr1040M+66kXKxE+7Shs3eSB9sFLlWXxAfIbbw4o=; h=From:To:Cc:Subject:Date:From; b=kUjCqao/2mBrV9VKwiWTkOVTjUPG0esW+g/wBquWcFgKtnVSMLndOnYOdx93rsce4 BNhdJP365aNx1JhSSqQLj2SGR8B3ICFZLzf2cojDXEPj3jf0XJABbQCNqj8ZzzWI4/ 5u0pHjSg2V5itrvFE90TIERDi9bwO5wsvriGh6/+jcw5ESeB1heA/Ah8dF5K05maNl oZdDu+MEcRvRn2ljBvT9RYudGtF2b8Xs1sb0DV3rgZoHdJ2MSne0vvr/xq66c6lX9J AaUlQGJ2LI1fMiYC6UPE5h9b46fB0RhyawJvZpKu6rCIGaGIPqFbpklwREiiMi/mcR tdPbBa4/4UlMg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4JXzf54HTrz9rxM; Tue, 11 Jan 2022 06:24:45 +0100 (CET) From: Vinicius Monego Date: Tue, 11 Jan 2022 05:24:29 +0000 Message-Id: <20220111052429.34592-3-monego@posteo.net> In-Reply-To: <20220111052429.34592-1-monego@posteo.net> References: <20220111052429.34592-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=1641878739; 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=d6740PQnhDxdbTcPSz858svoL2+OSXV1QtUTeNq15Fc=; b=f6KibqoIOkvhVvdi3OXuRVGDA4DBy6r1lmmXx3YJQD1PzQA9B1N7Oju3+p6LvnjVRGwq/f DQ2C7dnw9uTsvWeSXCvSJ4goh5So2FsY0Ol8FCLwMlJq+uDFH6jCzkMz9AyZ4HS3ve2I9A SlF/k52LwwMTHgsZQuBqNiIc5LkcUrwt6v0zyIa4aHsC+aH/FKrO3hFCbWDHJQwiZt+h0X Pwo9rrB0CQeATYRGbATFFOpSANqcEfuQv7C4gp6i2wUwMWlHoRXDyBfX3c7z0ri/OJUVcI md6yb29ypMgiyzpJQn7IiFGWvJUvpe758r/k00bUzc8BMLznqqTmz6Ff2WJA8Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641878739; a=rsa-sha256; cv=none; b=XQY8IpZ8WZg57eqM22wkig3fgrk9lhXmGgYz5j/A+lTfkgq4cmkmKxXaQ6+yvXgUmop7tC xMs/YcfphQUQ3uDXq73Ms/y2t1QitMKvpZkV9aQgDt3qVnXJyKJHx+8oGO2+yd4KbrEmbs gD7wn7rdHZKXnCATyfZo3UyQn+lfaUoUioeJvLOBFCb6dRD5pGHYJ/Q+asTj4ibwxbGaiz wZKTwKjDaYlgTvtuDEtTZ6XRNUr+/jTxF4iNHXZOjA3n5z5p1oa7jltpsAJg/Wfvsl+vco t+McUb1ojk3l3Y6ddA2ir77wJQMaREzcPewSS34Ltat9htmjc4yDtaWkM5C26Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b="kUjCqao/"; 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: -1.51 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b="kUjCqao/"; 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: 970D03CD7E X-Spam-Score: -1.51 X-Migadu-Scanner: scn0.migadu.com X-TUID: K6g22zJxwWaL * 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 b4e2765d72..da044b7acb 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 @@ -1735,6 +1735,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