2019-11-19 11:54:28 +08:00
|
|
|
%define _description__ \
|
|
|
|
|
Mock is a Python module which provides a core mock class. It removes the need \
|
|
|
|
|
to create a host of stubs throughout your test suite. After performing an \
|
|
|
|
|
action, you can make assertions about which methods / attributes were used and \
|
|
|
|
|
arguments they were called with. You can also specify return values and set \
|
|
|
|
|
needed attributes in the normal way. \
|
|
|
|
|
|
|
|
|
|
Name: python-mock
|
2021-02-01 11:39:58 +08:00
|
|
|
Version: 4.0.3
|
2022-05-11 15:30:27 +08:00
|
|
|
Release: 2
|
2019-11-19 11:54:28 +08:00
|
|
|
Summary: A Python Mocking and Patching Library for Testing
|
2022-05-11 15:30:27 +08:00
|
|
|
License: BSD-2-Clause
|
2019-11-19 11:54:28 +08:00
|
|
|
URL: http://www.voidspace.org.uk/python/mock/
|
2020-09-29 10:38:32 +08:00
|
|
|
Source0: https://pypi.python.org/packages/source/m/mock/mock-%{version}.tar.gz
|
2019-11-19 11:54:28 +08:00
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
2020-08-20 15:06:23 +08:00
|
|
|
BuildRequires: python3-devel python3-setuptools python3-pbr python3-unittest2 python3-pytest
|
2019-11-19 11:54:28 +08:00
|
|
|
|
2020-07-25 11:06:02 +08:00
|
|
|
%description
|
2019-11-19 11:54:28 +08:00
|
|
|
%{_description__}
|
|
|
|
|
|
|
|
|
|
%package -n python3-mock
|
|
|
|
|
Summary: Python3 subpackage for %{name}
|
|
|
|
|
%{?python_provide:%python_provide python3-mock}
|
2020-08-20 15:06:23 +08:00
|
|
|
Requires: python3-pbr python3-six >= 1.9.0
|
2019-11-19 11:54:28 +08:00
|
|
|
|
|
|
|
|
%description -n python3-mock
|
|
|
|
|
This is the python3 subpackage for %{name}.
|
|
|
|
|
%{_description__}
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n mock-%{version} -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%{py3_build}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%{__python3} setup.py test ||:
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%{py3_install}
|
|
|
|
|
|
|
|
|
|
%files -n python3-mock
|
|
|
|
|
%license LICENSE.txt
|
|
|
|
|
%{python3_sitelib}/{*.egg-info,mock}
|
|
|
|
|
|
|
|
|
|
%changelog
|
2022-05-11 15:30:27 +08:00
|
|
|
* Wed May 11 2022 wulei <wulei80@h-partners.com> - 4.0.3-2
|
|
|
|
|
- License compliance rectification
|
|
|
|
|
|
2021-02-01 11:39:58 +08:00
|
|
|
* Mon Feb 1 2021 shangyibin <shangyibin1@huawei.com> - 4.0.3-1
|
|
|
|
|
- Upgrade to version 4.0.3
|
|
|
|
|
|
2020-09-29 10:38:32 +08:00
|
|
|
* Tue Sep 20 2020 liuweibo <liuweibo10@huawei.com> - 4.0.2-3
|
|
|
|
|
- Fix Source0
|
|
|
|
|
|
2020-08-20 15:06:23 +08:00
|
|
|
* Thu Aug 20 2020 tianwei <tianwei12@huawei.com> - 4.0.2-2
|
|
|
|
|
- Don't require funcsigs on python3, it's part of the standard library
|
|
|
|
|
|
2020-07-25 11:06:02 +08:00
|
|
|
* Sat Jul 25 2020 tianwei <tianwei12@huawei.com> - 4.0.2-1
|
|
|
|
|
- Package update to 4.0.2
|
2020-08-20 15:06:23 +08:00
|
|
|
|
2019-11-19 11:54:28 +08:00
|
|
|
* Thu Oct 17 2019 huzhiyu <huzhiyu1@huawei.com> - 2.0.0-11
|
|
|
|
|
- Package init
|