Info2: << Package: pytest-mock-py%type_pkg[python] Version: 3.12.0 Revision: 1 Description: Thin-wrapper around the mock package License: BSD # Free to modify, update, and take over Maintainer: Hanspeter Niederstrasser Type: python (3.8 3.9 3.10) Depends: << python%type_pkg[python] << RuntimeDepends: << pytest-py%type_pkg[python] (>= 5.0) << BuildDepends: << fink (>= 0.32), setuptools-scm-py%type_pkg[python], setuptools-tng-py%type_pkg[python] << Source: https://files.pythonhosted.org/packages/source/p/pytest-mock/pytest-mock-%v.tar.gz Source-Checksum: SHA256(31a40f038c22cad32287bb43932054451ff5583ff094bca6f675df2f8bc1a6e9) CompileScript: << %p/bin/python%type_raw[python] setup.py build << InfoTest: << # circular test dependency # pytest-asyncio-py%type_pkg[python] TestDepends: << coverage-py%type_pkg[python], pytest-py%type_pkg[python] (>= 5.0) << # mock is part of unittest.mock since python3.3. Make sure we use internal mock TestConflicts: << mock-py%type_pkg[python] << TestScript: << #!/bin/bash -ev # only run tests if pytest-asyncio is already installed # skip test_detailed_introspection*: https://github.com/pytest-dev/pytest-mock/issues/255 if [ -f %p/lib/python%type_raw[python]/site-packages/pytest_asyncio/__init__.py ]; then %p/bin/python%type_raw[python] setup.py install --root %b/tempdist export PYTHONPATH=%b/tempdist/%p/lib/python%type_raw[python]/site-packages %p/bin/coverage%type_raw[python] run --append -m pytest tests -k "not (test_assert_called_args_with_introspection or test_assert_called_kwargs_with_introspection or test_detailed_introspection)" -vv || exit 2 else echo "pytest-asyncio-py%type_pkg[python] is not installed. Will not run tests." exit 0 fi << << InstallScript: << %p/bin/python%type_raw[python] setup.py install --root %d << DocFiles: LICENSE README.rst Homepage: https://pypi.org/project/pytest-mock DescDetail: << This plugin installs a mocker fixture which is a thin-wrapper around the patching API provided by the mock package, but with the benefit of not having to worry about undoing patches at the end of a test. << <<