[packages/python3-pytest-mock] - updated to 3.10.0 - added tests patch to fix two test failures

qboosh qboosh at pld-linux.org
Mon Oct 24 06:38:08 CEST 2022


commit 35c9406468114469599da974ff65960e44a7d9a7
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Oct 24 06:39:08 2022 +0200

    - updated to 3.10.0
    - added tests patch to fix two test failures

 pytest-mock-tests.patch  | 33 +++++++++++++++++++++++++++++++++
 python3-pytest-mock.spec |  8 +++++---
 2 files changed, 38 insertions(+), 3 deletions(-)
---
diff --git a/python3-pytest-mock.spec b/python3-pytest-mock.spec
index 10d16b0..347cff9 100644
--- a/python3-pytest-mock.spec
+++ b/python3-pytest-mock.spec
@@ -5,13 +5,14 @@
 Summary:	Thin-wrapper around the mock package for easier use with py.test
 Summary(pl.UTF-8):	Cienka warstwa obudowująca pakiet mock, ułatwiająca używanie wraz z py.test
 Name:		python3-pytest-mock
-Version:	3.7.0
-Release:	3
+Version:	3.10.0
+Release:	1
 License:	MIT
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/pytest-mock/
 Source0:	https://files.pythonhosted.org/packages/source/p/pytest-mock/pytest-mock-%{version}.tar.gz
-# Source0-md5:	8a17273e0dd1edd32b9c01e876a824fd
+# Source0-md5:	29c685fb54fbac80aae0e551bcbaab31
+Patch0:		pytest-mock-tests.patch
 URL:		https://pypi.org/project/pytest-mock/
 BuildRequires:	python3-modules >= 1:3.7
 BuildRequires:	python3-setuptools
@@ -40,6 +41,7 @@ pozwalający nie martwić się o wycofywanie łat na końcu testu.
 
 %prep
 %setup -q -n pytest-mock-%{version}
+%patch0 -p1
 
 %build
 %py3_build
diff --git a/pytest-mock-tests.patch b/pytest-mock-tests.patch
new file mode 100644
index 0000000..6ba9f8f
--- /dev/null
+++ b/pytest-mock-tests.patch
@@ -0,0 +1,33 @@
+"more diff" vs "full diff"
+--- pytest-mock-3.10.0/tests/test_pytest_mock.py.orig	2022-10-05 20:52:25.000000000 +0200
++++ pytest-mock-3.10.0/tests/test_pytest_mock.py	2022-10-24 06:26:54.219495582 +0200
+@@ -773,12 +773,12 @@ def test_detailed_introspection(testdir:
+         "*Args:",
+         "*assert ('fo',) == ('',)",
+         "*At index 0 diff: 'fo' != ''*",
+-        "*Use -v to get more diff*",
++        "*Use -v to get * diff*",
+         "*Kwargs:*",
+         "*assert {} == {'bar': 4}*",
+         "*Right contains* more item*",
+         "*{'bar': 4}*",
+-        "*Use -v to get more diff*",
++        "*Use -v to get * diff*",
+     ]
+     result.stdout.fnmatch_lines(expected_lines)
+ 
+@@ -814,12 +814,12 @@ def test_detailed_introspection_async(te
+         "*Args:",
+         "*assert ('fo',) == ('',)",
+         "*At index 0 diff: 'fo' != ''*",
+-        "*Use -v to get more diff*",
++        "*Use -v to get * diff*",
+         "*Kwargs:*",
+         "*assert {} == {'bar': 4}*",
+         "*Right contains* more item*",
+         "*{'bar': 4}*",
+-        "*Use -v to get more diff*",
++        "*Use -v to get * diff*",
+     ]
+     result.stdout.fnmatch_lines(expected_lines)
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-pytest-mock.git/commitdiff/35c9406468114469599da974ff65960e44a7d9a7



More information about the pld-cvs-commit mailing list