pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/py-test-mock py-test-mock: updated to 2.0.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0dd2fc1368ce
branches:  trunk
changeset: 410695:0dd2fc1368ce
user:      adam <adam%pkgsrc.org@localhost>
date:      Mon Jan 27 13:05:07 2020 +0000

description:
py-test-mock: updated to 2.0.0

2.0.0:

Breaking Changes

mocker.spy attributes for tracking returned values and raised exceptions of its spied functions are now called spy_return and spy_exception, instead of reusing the existing MagicMock attributes 
return_value and side_effect.

Version 1.13 introduced a serious regression: after a spied function using mocker.spy raises an exception, further calls to the spy will not call the spied function, always raising the first 
exception instead: assigning to side_effect causes unittest.mock to behave this way.

The deprecated mock alias to the mocker fixture has finally been removed.

diffstat:

 devel/py-test-mock/Makefile |   4 ++--
 devel/py-test-mock/distinfo |  10 +++++-----
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (27 lines):

diff -r 2a31a6ce1924 -r 0dd2fc1368ce devel/py-test-mock/Makefile
--- a/devel/py-test-mock/Makefile       Mon Jan 27 12:57:21 2020 +0000
+++ b/devel/py-test-mock/Makefile       Mon Jan 27 13:05:07 2020 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.20 2019/12/11 10:32:34 adam Exp $
+# $NetBSD: Makefile,v 1.21 2020/01/27 13:05:07 adam Exp $
 
-DISTNAME=      pytest-mock-1.13.0
+DISTNAME=      pytest-mock-2.0.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/py//}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pytest-mock/}
diff -r 2a31a6ce1924 -r 0dd2fc1368ce devel/py-test-mock/distinfo
--- a/devel/py-test-mock/distinfo       Mon Jan 27 12:57:21 2020 +0000
+++ b/devel/py-test-mock/distinfo       Mon Jan 27 13:05:07 2020 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.18 2019/12/11 10:32:34 adam Exp $
+$NetBSD: distinfo,v 1.19 2020/01/27 13:05:07 adam Exp $
 
-SHA1 (pytest-mock-1.13.0.tar.gz) = 06c58a722805aec7fd94a1665ca27439583ed37a
-RMD160 (pytest-mock-1.13.0.tar.gz) = dfdede8168adebd6350d935011e69c1eee979094
-SHA512 (pytest-mock-1.13.0.tar.gz) = 11ca6379a32489fc9e18cdbc40ebc1f59fb1284fb3a8c39a4d98435d0f3b3e1630d13243dd79e2d3f468a3296b3931bc810da2095a0a9c29150010d9e1a44ed8
-Size (pytest-mock-1.13.0.tar.gz) = 23823 bytes
+SHA1 (pytest-mock-2.0.0.tar.gz) = 8dfd1f43e7f0379b017669ca705f245910b14c88
+RMD160 (pytest-mock-2.0.0.tar.gz) = d11a35777126df3d39e29f94bb22a313f197bab1
+SHA512 (pytest-mock-2.0.0.tar.gz) = 8bd7f634afebeae628470270c81f0198647bf8cd5b0fac438891d881d9823e40e814d598670bb9c9722b864990958e69d385c7c6a6e2adc81d2adcb303fbe0b0
+Size (pytest-mock-2.0.0.tar.gz) = 24665 bytes



Home | Main Index | Thread Index | Old Index