python-pytest-mock 3.6.1-1 (znver1;aarch64;x86_64) 2021-14053
0

Status rejected
Submitter itchka [@T] compuserve.com
Platform rolling
Repository unsupported
URL https://abf.openmandriva.org/build_lists/55450
Packages
python-pytest-mock-3.6.1-1.znver1.source
python-pytest-mock-3.6.1-1.znver1.binary
python-pytest-mock-3.6.1-1.aarch64.source
python-pytest-mock-3.6.1-1.aarch64.binary
python-pytest-mock-3.6.1-1.x86_64.source
python-pytest-mock-3.6.1-1.x86_64.binary
Build Date 2021-06-30 11:13:17 +0000 UTC
Last Updated 2021-07-12 20:38:02.021245237 +0000 UTC
$ git show --format=fuller --patch-with-stat --summary 3e34934850c8274f4c279317a552a37f55b8f6c9

commit 3e34934850c8274f4c279317a552a37f55b8f6c9
Author:     iso buider <root@localhost>
AuthorDate: Wed Jun 30 12:03:00 2021 +0100
Commit:     iso buider <root@localhost>
CommitDate: Wed Jun 30 12:03:00 2021 +0100

    Initial commit
---
 .abf.yml                |  2 ++
 python-pytest-mock.spec | 52 +++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 54 insertions(+)
 create mode 100644 .abf.yml
 create mode 100755 python-pytest-mock.spec

diff --git a/.abf.yml b/.abf.yml
new file mode 100644
index 0000000..19387e9
--- /dev/null
+++ b/.abf.yml
@@ -0,0 +1,2 @@
+sources:
+  pytest-mock-3.6.1.tar.gz: e0d9af508aa16087d4a37b168e8f5ec4970a85b9
diff --git a/python-pytest-mock.spec b/python-pytest-mock.spec
new file mode 100755
index 0000000..cd54ba7
--- /dev/null
+++ b/python-pytest-mock.spec
@@ -0,0 +1,52 @@
+# Created by pyp2rpm-3.3.5
+%global pypi_name pytest-mock
+%bcond_with bootstrap
+
+Name:           python-%{pypi_name}
+Version:        3.6.1
+Release:        1
+Summary:        Thin-wrapper around the mock package for easier use with pytest
+Group:          Development/Python
+License:        MIT
+URL:            https://github.com/pytest-dev/pytest-mock/
+Source0:        %{pypi_name}-%{version}.tar.gz
+BuildArch:      noarch
+
+BuildRequires:  python3-devel
+BuildRequires:  python3dist(pre-commit)
+BuildRequires:  python3dist(pytest) >= 5
+BuildRequires:  python3dist(pytest-asyncio)
+BuildRequires:  python3dist(setuptools)
+BuildRequires:  python3dist(setuptools-scm)
+%if %{with bootstrap}
+BuildRequires:  python3dist(tox)
+%endif
+
+%description
+ pytest-mock This plugin provides a mocker fixture which is a thin-wrapper
+around the patching API provided by the mock package < code-block:: python
+import os class UnixFS: @staticmethod def rm(filename): os.remove(filename) def
+test_unix_fs(mocker): mocker.patch('os.remove') UnixFS.rm('file')
+os.remove.assert_called_once_with('file') Besides undoing the mocking
+automatically after the end of...
+
+%prep
+%autosetup -n %{pypi_name}-%{version}
+# Remove bundled egg-info
+rm -rf %{pypi_name}.egg-info
+
+%build
+%py3_build
+
+%install
+%py3_install
+
+%check
+%{__python3} setup.py test
+
+%files -n python-%{pypi_name}
+%license LICENSE
+%doc README.rst
+%{python3_sitelib}/pytest_mock
+%{python3_sitelib}/pytest_mock-%{version}-py%{python3_version}.egg-info
+
Not Available

benbullard79 [@T] cox.netNo Comment.1230d 23hrs