]> git.pld-linux.org Git - packages/python3-pytest-mock.git/commitdiff
- updated to 3.10.0 master auto/th/python3-pytest-mock-3.10.0-1
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 24 Oct 2022 04:39:08 +0000 (06:39 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Mon, 24 Oct 2022 04:39:08 +0000 (06:39 +0200)
- added tests patch to fix two test failures

pytest-mock-tests.patch [new file with mode: 0644]
python3-pytest-mock.spec

diff --git a/pytest-mock-tests.patch b/pytest-mock-tests.patch
new file mode 100644 (file)
index 0000000..6ba9f8f
--- /dev/null
@@ -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)
index 10d16b0ab5d36237e7e98b1c86bc4e805fa770da..347cff9a8af3254b16999511562a2a219815feee 100644 (file)
@@ -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
This page took 0.13176 seconds and 4 git commands to generate.