[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
207/377: gnu: python-pytest-mock: Update to 3.6.1 and run test suite.
From: |
guix-commits |
Subject: |
207/377: gnu: python-pytest-mock: Update to 3.6.1 and run test suite. |
Date: |
Thu, 2 Sep 2021 17:55:33 -0400 (EDT) |
raghavgururajan pushed a commit to branch wip-gnome
in repository guix.
commit 48461816e4886453726a81d98a1d6846fa709579
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Thu Aug 26 14:44:48 2021 -0400
gnu: python-pytest-mock: Update to 3.6.1 and run test suite.
* gnu/packages/check.scm (python-pytest-mock): Update to 3.6.1.
[phases]{check}: Override to run test suite.
[propagated-inputs]: Add python-pytest-asyncio.
---
gnu/packages/check.scm | 30 ++++++++++++++++++++++--------
1 file changed, 22 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 43689c3..3dc4319 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -1261,19 +1261,33 @@ contacting the real http server.")
(define-public python-pytest-mock
(package
(name "python-pytest-mock")
- (version "1.10.1")
+ (version "3.6.1")
(source
- (origin
- (method url-fetch)
- (uri (pypi-uri "pytest-mock" version))
- (sha256
- (base32
- "1i5mg3ff1qk0wqfcxfz60hwy3q5dskdp36i10ckigkzffg8hc3ad"))))
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pytest-mock" version))
+ (sha256 (base32
+ "0qhfmd05z3g88bnwq6644jl6p5wy01i4yy7h8883z9jjih2pl8a0"))))
(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)
+ ;; Skip the assertion rewriting tests, which don't work in the
+ ;; presence of read-only Python modules (a limitation of
+ ;; Pytest). Also skip the "test_standalone_mock" test, which
+ ;; can only work when 'python-mock' is not available
+ ;; (currently propagated by Pytest 5).
+ (invoke "pytest" "--assert=plain"
+ "-k" "not test_standalone_mock")))))))
(native-inputs
`(("python-setuptools-scm" ,python-setuptools-scm)))
(propagated-inputs
- `(("python-pytest" ,python-pytest)))
+ `(("python-pytest" ,python-pytest)
+ ("python-pytest-asyncio" ,python-pytest-asyncio)))
(home-page "https://github.com/pytest-dev/pytest-mock/")
(synopsis "Thin-wrapper around the mock package for easier use with
py.test")
(description
- 196/377: gnu: Add python-resolvelib., (continued)
- 196/377: gnu: Add python-resolvelib., guix-commits, 2021/09/02
- 197/377: gnu: Add python-resolvelib-0.5., guix-commits, 2021/09/02
- 193/377: gnu: bootloader: Support multiple targets., guix-commits, 2021/09/02
- 199/377: gnu: Add python-pyspnego., guix-commits, 2021/09/02
- 200/377: gnu: python-pytest-6: Update to 6.2.4 and propagate iniconfig., guix-commits, 2021/09/02
- 202/377: gnu: python-rope: Update to 0.19.0 and remove python2-rope., guix-commits, 2021/09/02
- 205/377: gnu: python-pytest-forked: Update to 1.3.0 and run test suite., guix-commits, 2021/09/02
- 204/377: gnu: python-py-next: Update to 1.10.0., guix-commits, 2021/09/02
- 211/377: gnu: ansible: Update to 4.4.0., guix-commits, 2021/09/02
- 209/377: gnu: Add python-pytest-xdist-next., guix-commits, 2021/09/02
- 207/377: gnu: python-pytest-mock: Update to 3.6.1 and run test suite.,
guix-commits <=
- 214/377: services: base: Honor file-system-create-mount-point? at all times., guix-commits, 2021/09/02
- 235/377: gnu: Add python-pybbi., guix-commits, 2021/09/02
- 228/377: build: Build (gnu packages rocm)., guix-commits, 2021/09/02
- 220/377: gnu: mu: Update to 1.6.5., guix-commits, 2021/09/02
- 217/377: gnu: rofi: Update to 1.7.0., guix-commits, 2021/09/02
- 226/377: bootloader: Report location of the deprecated 'target' field., guix-commits, 2021/09/02
- 222/377: gnu: guile-websocket: Update to 0.1-d17878f6., guix-commits, 2021/09/02
- 213/377: gnu: python-pytest-django: Update to 4.4.0., guix-commits, 2021/09/02
- 224/377: gnu: extra-cmake-modules: Avoid dependency on qtbase when on armhf., guix-commits, 2021/09/02
- 225/377: build: Build (gnu system setuid)., guix-commits, 2021/09/02