!21 update package to version 3.11.1
From: @li-miaomiao_zhr Reviewed-by: @licihua Signed-off-by: @licihua
This commit is contained in:
commit
843b3a4ec9
BIN
pytest-mock-3.11.1.tar.gz
Normal file
BIN
pytest-mock-3.11.1.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
@ -1,8 +1,17 @@
|
|||||||
Index: pytest-mock-3.6.1/tests/test_pytest_mock.py
|
From 18f6ba2f7733e0145c87038bed8e1f95b1125e56 Mon Sep 17 00:00:00 2001
|
||||||
===================================================================
|
From: li-miaomiao_zhr <mmlidc@isoftstone.com>
|
||||||
--- pytest-mock-3.6.1.orig/tests/test_pytest_mock.py
|
Date: Wed, 28 Jun 2023 15:08:15 +0800
|
||||||
+++ pytest-mock-3.6.1/tests/test_pytest_mock.py
|
Subject: [PATCH] pytest mock issue272 asyncio
|
||||||
@@ -839,7 +839,7 @@ def test_plain_stopall(testdir: Any) ->
|
|
||||||
|
---
|
||||||
|
tests/test_pytest_mock.py | 10 +++++-----
|
||||||
|
1 file changed, 5 insertions(+), 5 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/tests/test_pytest_mock.py b/tests/test_pytest_mock.py
|
||||||
|
index 3d53241..5e3ac7b 100644
|
||||||
|
--- a/tests/test_pytest_mock.py
|
||||||
|
+++ b/tests/test_pytest_mock.py
|
||||||
|
@@ -948,7 +948,7 @@ def test_plain_stopall(testdir: Any) -> None:
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
result = testdir.runpytest_subprocess()
|
result = testdir.runpytest_subprocess()
|
||||||
@ -11,7 +20,7 @@ Index: pytest-mock-3.6.1/tests/test_pytest_mock.py
|
|||||||
assert "RuntimeError" not in result.stderr.str()
|
assert "RuntimeError" not in result.stderr.str()
|
||||||
|
|
||||||
|
|
||||||
@@ -978,7 +978,7 @@ def test_used_with_class_scope(testdir:
|
@@ -1093,7 +1093,7 @@ def test_used_with_class_scope(testdir: Any) -> None:
|
||||||
)
|
)
|
||||||
result = testdir.runpytest_subprocess()
|
result = testdir.runpytest_subprocess()
|
||||||
assert "AssertionError" not in result.stderr.str()
|
assert "AssertionError" not in result.stderr.str()
|
||||||
@ -20,7 +29,7 @@ Index: pytest-mock-3.6.1/tests/test_pytest_mock.py
|
|||||||
|
|
||||||
|
|
||||||
def test_used_with_module_scope(testdir: Any) -> None:
|
def test_used_with_module_scope(testdir: Any) -> None:
|
||||||
@@ -1000,7 +1000,7 @@ def test_used_with_module_scope(testdir:
|
@@ -1121,7 +1121,7 @@ def test_used_with_module_scope(testdir: Any) -> None:
|
||||||
)
|
)
|
||||||
result = testdir.runpytest_subprocess()
|
result = testdir.runpytest_subprocess()
|
||||||
assert "AssertionError" not in result.stderr.str()
|
assert "AssertionError" not in result.stderr.str()
|
||||||
@ -29,7 +38,7 @@ Index: pytest-mock-3.6.1/tests/test_pytest_mock.py
|
|||||||
|
|
||||||
|
|
||||||
def test_used_with_package_scope(testdir: Any) -> None:
|
def test_used_with_package_scope(testdir: Any) -> None:
|
||||||
@@ -1023,7 +1023,7 @@ def test_used_with_package_scope(testdir
|
@@ -1149,7 +1149,7 @@ def test_used_with_package_scope(testdir: Any) -> None:
|
||||||
)
|
)
|
||||||
result = testdir.runpytest_subprocess()
|
result = testdir.runpytest_subprocess()
|
||||||
assert "AssertionError" not in result.stderr.str()
|
assert "AssertionError" not in result.stderr.str()
|
||||||
@ -38,9 +47,15 @@ Index: pytest-mock-3.6.1/tests/test_pytest_mock.py
|
|||||||
|
|
||||||
|
|
||||||
def test_used_with_session_scope(testdir: Any) -> None:
|
def test_used_with_session_scope(testdir: Any) -> None:
|
||||||
@@ -1046,4 +1046,4 @@ def test_used_with_session_scope(testdir
|
@@ -1177,7 +1177,7 @@ def test_used_with_session_scope(testdir: Any) -> None:
|
||||||
)
|
)
|
||||||
result = testdir.runpytest_subprocess()
|
result = testdir.runpytest_subprocess()
|
||||||
assert "AssertionError" not in result.stderr.str()
|
assert "AssertionError" not in result.stderr.str()
|
||||||
- result.stdout.fnmatch_lines("* 1 passed in *")
|
- result.stdout.fnmatch_lines("* 1 passed in *")
|
||||||
+ result.stdout.fnmatch_lines("* 1 passed*")
|
+ result.stdout.fnmatch_lines("* 1 passed*")
|
||||||
|
|
||||||
|
|
||||||
|
def test_stop_patch(mocker):
|
||||||
|
--
|
||||||
|
2.39.1
|
||||||
|
|
||||||
|
|||||||
@ -1,11 +1,12 @@
|
|||||||
Name: python-pytest-mock
|
Name: python-pytest-mock
|
||||||
Version: 3.6.1
|
Version: 3.11.1
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: Thin-wrapper around the mock package for easier use with py.test
|
Summary: Thin-wrapper around the mock package for easier use with py.test
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://pypi.python.org/pypi/pytest-mock
|
URL: https://pypi.python.org/pypi/pytest-mock
|
||||||
Source0: https://files.pythonhosted.org/packages/b3/08/b131e1b5c628a7d46c9b8d676a86a8d235bced79b9d90845500e39df81b9/pytest-mock-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/b3/08/b131e1b5c628a7d46c9b8d676a86a8d235bced79b9d90845500e39df81b9/pytest-mock-%{version}.tar.gz
|
||||||
Patch0001: pytest-mock-issue272-asyncio.patch
|
Patch0001: pytest-mock-issue272-asyncio.patch
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -40,7 +41,13 @@ rm -rf *.egg-info
|
|||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
/usr/bin/pytest --assert=plain
|
CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}" LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}" \
|
||||||
|
PATH="%{buildroot}%{_bindir}:$PATH" \
|
||||||
|
PYTHONPATH="${PYTHONPATH:-%{buildroot}%{python3_sitearch}:%{buildroot}%{python3_sitelib}}" \
|
||||||
|
PYTHONDONTWRITEBYTECODE=1 \
|
||||||
|
%{?__pytest_addopts:PYTEST_ADDOPTS="${PYTEST_ADDOPTS:-} %{__pytest_addopts}"} \
|
||||||
|
PYTEST_XDIST_AUTO_NUM_WORKERS=%{_smp_build_ncpus} \
|
||||||
|
%{_bindir}/pytest --assert=plain
|
||||||
|
|
||||||
%files -n python3-pytest-mock
|
%files -n python3-pytest-mock
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
@ -49,6 +56,9 @@ rm -rf *.egg-info
|
|||||||
%{python3_sitelib}/pytest_mock/
|
%{python3_sitelib}/pytest_mock/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jun 28 2023 li-miaomiao_zhr <mmlidc@isoftstone.com> - 3.11.1-1
|
||||||
|
- Update to 3.11.1
|
||||||
|
|
||||||
* Tue Apr 26 2022 caodongxia <caodongxia@h-partners.com> - 3.6.1-1
|
* Tue Apr 26 2022 caodongxia <caodongxia@h-partners.com> - 3.6.1-1
|
||||||
- update to 3.6.1
|
- update to 3.6.1
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user