代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/python-pytest-mock 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Name: python-pytest-mock
Version: 1.10.0
Release: 8
Summary: Thin-wrapper around the mock package for easier use with py.test
License: MIT
URL: https://pypi.python.org/pypi/pytest-mock
Source0: https://files.pythonhosted.org/packages/source/p/pytest-mock/pytest-mock-%{version}.tar.gz
Patch0001: backport-tests-handle-new-output-format-with-Python-3.8.patch
Patch0002: 0001-fix-tests-expectations-with-pytest4.patch
BuildArch: noarch
%description
This plugin provides a mocker fixture which is a thin-wrapper around the
patching API provided by the mock package.
Besides undoing the mocking automatically after the end of the test,
it also provides other nice utilities.
%package -n python3-pytest-mock
Summary: Thin-wrapper around the mock package for easier use with py.test
BuildArch: noarch
BuildRequires: python3-devel python3-pytest >= 2.7 python3-setuptools_scm
Requires: python3-pytest >= 2.7
%{?python_provide:%python_provide python3-pytest-mock}
%description -n python3-pytest-mock
This plugin provides a mocker fixture which is a thin-wrapper around the
patching API provided by the mock package.
Besides undoing the mocking automatically after the end of the test,
it also provides other nice utilities.
%prep
%autosetup -n pytest-mock-%{version} -p1
rm -rf *.egg-info
%build
%py3_build
%install
%py3_install
%check
PYTHONPATH="$(pwd)" py.test-%{python3_version} test_pytest_mock.py
%files -n python3-pytest-mock
%doc README.rst
%license LICENSE
%{python3_sitelib}/pytest_mock-%{version}-py%{python3_version}.egg-info/
%{python3_sitelib}/pytest_mock.py*
%{python3_sitelib}/_pytest_mock_version.py*
%{python3_sitelib}/__pycache__/*
%changelog
* Mon Jan 11 2021 maminjie <[email protected]> - 1.10.0-8
- fix tests expectations with pytest4
* Tue Aug 11 2020 lingsheng <[email protected]> - 1.10.0-7
- Remove python2-pytest-mock subpackage
* Sun Jun 28 2020 lingsheng <[email protected]> - 1.10.0-6
- Tests handle new output format with Python 3.8
* Wed Jun 24 2020 lizhenhua <[email protected]> - 1.10.0-5
- Modify test cases for python3.8
* Wed Jan 08 2019 yangjian<[email protected]> - 1.10.0-4
- Package init
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。