components/python/pytest-mock/Makefile | ●●●●● patch | view | raw | blame | history | |
components/python/pytest-mock/manifests/sample-manifest.p5m | ●●●●● patch | view | raw | blame | history | |
components/python/pytest-mock/patches/01-pytest-no-color.patch | ●●●●● patch | view | raw | blame | history | |
components/python/pytest-mock/patches/02-pytest-disable-plugins.patch | ●●●●● patch | view | raw | blame | history | |
components/python/pytest-mock/patches/03-tox-cov-proto.patch | ●●●●● patch | view | raw | blame | history | |
components/python/pytest-mock/pkg5 | ●●●●● patch | view | raw | blame | history | |
components/python/pytest-mock/pytest-mock-PYVER.p5m | ●●●●● patch | view | raw | blame | history | |
components/python/pytest-mock/python-integrate-project.conf | ●●●●● patch | view | raw | blame | history | |
components/python/pytest-mock/test/results-all.master | ●●●●● patch | view | raw | blame | history |
components/python/pytest-mock/Makefile
@@ -14,18 +14,16 @@ # $WS_TOOLS/python-integrate-project pytest-mock # BUILD_STYLE = setup.py BUILD_STYLE = pyproject include ../../../make-rules/shared-macros.mk COMPONENT_NAME = pytest-mock HUMAN_VERSION = 3.12.0 HUMAN_VERSION = 3.14.0 COMPONENT_SUMMARY = pytest-mock - Thin-wrapper around the mock package for easier use with pytest COMPONENT_PROJECT_URL = https://github.com/pytest-dev/pytest-mock/ COMPONENT_ARCHIVE_URL = \ https://files.pythonhosted.org/packages/b3/96/25588c55fbe330b751bd7c7d723c3544957566bc090f6d506551b514f488/pytest-mock-3.12.0.tar.gz COMPONENT_ARCHIVE_HASH = \ sha256:31a40f038c22cad32287bb43932054451ff5583ff094bca6f675df2f8bc1a6e9 sha256:2719255a1efeceadbc056d6bf3df3d1c5015530fb40cf347c0f9afac88410bd0 COMPONENT_LICENSE = MIT COMPONENT_LICENSE_FILE = LICENSE @@ -34,8 +32,19 @@ # https://github.com/pytest-dev/pytest-mock/issues/240 PYTEST_ADDOPTS += --assert=plain # https://github.com/pytest-dev/pluggy/issues/457 TEST_CONFLICTING_PACKAGES.python += library/python/pytest-checkdocs TEST_CONFLICTING_PACKAGES.python += library/python/pytest-console-scripts TEST_CONFLICTING_PACKAGES.python += library/python/pytest-enabler TEST_CONFLICTING_PACKAGES.python += library/python/pytest-randomly TEST_CONFLICTING_PACKAGES.python += library/python/pytest-relaxed TEST_CONFLICTING_PACKAGES.python += library/python/typeguard # Auto-generated dependencies PYTHON_REQUIRED_PACKAGES += library/python/pytest PYTHON_REQUIRED_PACKAGES += library/python/setuptools PYTHON_REQUIRED_PACKAGES += library/python/setuptools-scm PYTHON_REQUIRED_PACKAGES += library/python/wheel PYTHON_REQUIRED_PACKAGES += runtime/python TEST_REQUIRED_PACKAGES.python += library/python/coverage TEST_REQUIRED_PACKAGES.python += library/python/mock components/python/pytest-mock/manifests/sample-manifest.p5m
@@ -10,7 +10,7 @@ # # # Copyright 2023 <contributor> # Copyright 2024 <contributor> # set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)-$(PYV)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION) @@ -23,12 +23,11 @@ license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)' file path=usr/lib/python$(PYVER)/vendor-packages/pytest_mock-$(HUMAN_VERSION)-py$(PYVER).egg-info/PKG-INFO file path=usr/lib/python$(PYVER)/vendor-packages/pytest_mock-$(HUMAN_VERSION)-py$(PYVER).egg-info/SOURCES.txt file path=usr/lib/python$(PYVER)/vendor-packages/pytest_mock-$(HUMAN_VERSION)-py$(PYVER).egg-info/dependency_links.txt file path=usr/lib/python$(PYVER)/vendor-packages/pytest_mock-$(HUMAN_VERSION)-py$(PYVER).egg-info/entry_points.txt file path=usr/lib/python$(PYVER)/vendor-packages/pytest_mock-$(HUMAN_VERSION)-py$(PYVER).egg-info/requires.txt file path=usr/lib/python$(PYVER)/vendor-packages/pytest_mock-$(HUMAN_VERSION)-py$(PYVER).egg-info/top_level.txt file path=usr/lib/python$(PYVER)/vendor-packages/pytest_mock-$(HUMAN_VERSION).dist-info/LICENSE file path=usr/lib/python$(PYVER)/vendor-packages/pytest_mock-$(HUMAN_VERSION).dist-info/METADATA file path=usr/lib/python$(PYVER)/vendor-packages/pytest_mock-$(HUMAN_VERSION).dist-info/WHEEL file path=usr/lib/python$(PYVER)/vendor-packages/pytest_mock-$(HUMAN_VERSION).dist-info/entry_points.txt file path=usr/lib/python$(PYVER)/vendor-packages/pytest_mock-$(HUMAN_VERSION).dist-info/top_level.txt file path=usr/lib/python$(PYVER)/vendor-packages/pytest_mock/__init__.py file path=usr/lib/python$(PYVER)/vendor-packages/pytest_mock/_util.py file path=usr/lib/python$(PYVER)/vendor-packages/pytest_mock/_version.py components/python/pytest-mock/patches/01-pytest-no-color.patch
@@ -1,8 +1,8 @@ --- pytest-mock-3.12.0/tox.ini.orig +++ pytest-mock-3.12.0/tox.ini @@ -8,7 +8,7 @@ mock --- pytest-mock-3.14.0/tox.ini.orig +++ pytest-mock-3.14.0/tox.ini @@ -9,7 +9,7 @@ pytest-asyncio pytest6: pytest==6.2.5 commands = - coverage run --append --source={envsitepackagesdir}/pytest_mock -m pytest tests --color=yes + coverage run --append --source={envsitepackagesdir}/pytest_mock -m pytest tests components/python/pytest-mock/patches/02-pytest-disable-plugins.patch
File was deleted components/python/pytest-mock/patches/03-tox-cov-proto.patch
@@ -1,10 +1,10 @@ We test in proto area not in site-packages. --- pytest-mock-3.12.0/tox.ini.orig +++ pytest-mock-3.12.0/tox.ini @@ -8,7 +8,7 @@ mock --- pytest-mock-3.14.0/tox.ini.orig +++ pytest-mock-3.14.0/tox.ini @@ -9,7 +9,7 @@ pytest-asyncio pytest6: pytest==6.2.5 commands = - coverage run --append --source={envsitepackagesdir}/pytest_mock -m pytest tests + coverage run --append --source=pytest_mock -m pytest tests components/python/pytest-mock/pkg5
@@ -1,11 +1,14 @@ { "dependencies": [ "library/python/pytest-39", "library/python/setuptools-39", "library/python/setuptools-scm-39", "library/python/wheel-39", "runtime/python-39" ], "fmris": [ "library/python/pytest-mock-39", "library/python/pytest-mock" "library/python/pytest-mock", "library/python/pytest-mock-39" ], "name": "pytest-mock" } } components/python/pytest-mock/pytest-mock-PYVER.p5m
@@ -23,12 +23,11 @@ license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)' file path=usr/lib/python$(PYVER)/vendor-packages/pytest_mock-$(HUMAN_VERSION)-py$(PYVER).egg-info/PKG-INFO file path=usr/lib/python$(PYVER)/vendor-packages/pytest_mock-$(HUMAN_VERSION)-py$(PYVER).egg-info/SOURCES.txt file path=usr/lib/python$(PYVER)/vendor-packages/pytest_mock-$(HUMAN_VERSION)-py$(PYVER).egg-info/dependency_links.txt file path=usr/lib/python$(PYVER)/vendor-packages/pytest_mock-$(HUMAN_VERSION)-py$(PYVER).egg-info/entry_points.txt file path=usr/lib/python$(PYVER)/vendor-packages/pytest_mock-$(HUMAN_VERSION)-py$(PYVER).egg-info/requires.txt file path=usr/lib/python$(PYVER)/vendor-packages/pytest_mock-$(HUMAN_VERSION)-py$(PYVER).egg-info/top_level.txt file path=usr/lib/python$(PYVER)/vendor-packages/pytest_mock-$(HUMAN_VERSION).dist-info/LICENSE file path=usr/lib/python$(PYVER)/vendor-packages/pytest_mock-$(HUMAN_VERSION).dist-info/METADATA file path=usr/lib/python$(PYVER)/vendor-packages/pytest_mock-$(HUMAN_VERSION).dist-info/WHEEL file path=usr/lib/python$(PYVER)/vendor-packages/pytest_mock-$(HUMAN_VERSION).dist-info/entry_points.txt file path=usr/lib/python$(PYVER)/vendor-packages/pytest_mock-$(HUMAN_VERSION).dist-info/top_level.txt file path=usr/lib/python$(PYVER)/vendor-packages/pytest_mock/__init__.py file path=usr/lib/python$(PYVER)/vendor-packages/pytest_mock/_util.py file path=usr/lib/python$(PYVER)/vendor-packages/pytest_mock/_version.py components/python/pytest-mock/python-integrate-project.conf
@@ -14,9 +14,16 @@ # %patch% 01-pytest-no-color.patch %patch% 02-pytest-disable-plugins.patch %patch% 03-tox-cov-proto.patch %include-3% # https://github.com/pytest-dev/pytest-mock/issues/240 PYTEST_ADDOPTS += --assert=plain # https://github.com/pytest-dev/pluggy/issues/457 TEST_CONFLICTING_PACKAGES.python += library/python/pytest-checkdocs TEST_CONFLICTING_PACKAGES.python += library/python/pytest-console-scripts TEST_CONFLICTING_PACKAGES.python += library/python/pytest-enabler TEST_CONFLICTING_PACKAGES.python += library/python/pytest-randomly TEST_CONFLICTING_PACKAGES.python += library/python/pytest-relaxed TEST_CONFLICTING_PACKAGES.python += library/python/typeguard components/python/pytest-mock/test/results-all.master
@@ -35,17 +35,16 @@ tests/test_pytest_mock.py::test_assert_not_called_wrapper PASSED tests/test_pytest_mock.py::test_callable_like_spy PASSED tests/test_pytest_mock.py::test_class_method_spy PASSED tests/test_pytest_mock.py::test_class_method_spy_autospec_false PASSED tests/test_pytest_mock.py::test_class_method_subclass_spy PASSED tests/test_pytest_mock.py::test_class_method_with_metaclass_spy PASSED tests/test_pytest_mock.py::test_context_manager_patch_example PASSED tests/test_pytest_mock.py::test_detailed_introspection SKIPPED (this...) tests/test_pytest_mock.py::test_detailed_introspection_async SKIPPED tests/test_pytest_mock.py::test_instance_async_method_spy PASSED tests/test_pytest_mock.py::test_instance_class_static_method_spy_autospec_true PASSED tests/test_pytest_mock.py::test_instance_method_by_class_spy PASSED tests/test_pytest_mock.py::test_instance_method_by_subclass_spy PASSED tests/test_pytest_mock.py::test_instance_method_spy PASSED tests/test_pytest_mock.py::test_instance_method_spy_autospec_true PASSED tests/test_pytest_mock.py::test_instance_method_spy_exception[BaseException] PASSED tests/test_pytest_mock.py::test_instance_method_spy_exception[Exception] PASSED tests/test_pytest_mock.py::test_instance_method_spy_exception[GeneratorExit] PASSED @@ -82,6 +81,7 @@ tests/test_pytest_mock.py::test_static_method_subclass_spy PASSED tests/test_pytest_mock.py::test_stop_instance_patch PASSED tests/test_pytest_mock.py::test_stop_instance_spy PASSED tests/test_pytest_mock.py::test_stop_multiple_patches PASSED tests/test_pytest_mock.py::test_stop_patch PASSED tests/test_pytest_mock.py::test_stop_spy PASSED tests/test_pytest_mock.py::test_used_with_class_scope PASSED @@ -91,75 +91,7 @@ tests/test_pytest_mock.py::test_warn_patch_context_manager PASSED tests/test_pytest_mock.py::test_warn_patch_object_context_manager PASSED =============================== warnings summary =============================== tests/test_pytest_mock.py::test_missing_introspection tests/test_pytest_mock.py::test_abort_patch_context_manager_with_stale_pyc tests/test_pytest_mock.py::test_abort_patch_context_manager_with_stale_pyc $(PYTHON_DIR)/vendor-packages/pytest_reporter/__init__.py:1: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html from pkg_resources import get_distribution, DistributionNotFound tests/test_pytest_mock.py::test_missing_introspection tests/test_pytest_mock.py::test_missing_introspection tests/test_pytest_mock.py::test_abort_patch_context_manager_with_stale_pyc tests/test_pytest_mock.py::test_abort_patch_context_manager_with_stale_pyc tests/test_pytest_mock.py::test_abort_patch_context_manager_with_stale_pyc tests/test_pytest_mock.py::test_abort_patch_context_manager_with_stale_pyc $(PYTHON_DIR)/vendor-packages/pkg_resources/__init__.py:2871: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('paste')`. Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages declare_namespace(pkg) tests/test_pytest_mock.py::test_missing_introspection tests/test_pytest_mock.py::test_abort_patch_context_manager_with_stale_pyc tests/test_pytest_mock.py::test_abort_patch_context_manager_with_stale_pyc $(PYTHON_DIR)/vendor-packages/pkg_resources/__init__.py:2871: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('flufl')`. Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages declare_namespace(pkg) tests/test_pytest_mock.py::test_missing_introspection tests/test_pytest_mock.py::test_missing_introspection tests/test_pytest_mock.py::test_abort_patch_context_manager_with_stale_pyc tests/test_pytest_mock.py::test_abort_patch_context_manager_with_stale_pyc tests/test_pytest_mock.py::test_abort_patch_context_manager_with_stale_pyc tests/test_pytest_mock.py::test_abort_patch_context_manager_with_stale_pyc $(PYTHON_DIR)/vendor-packages/pkg_resources/__init__.py:2871: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('repoze')`. Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages declare_namespace(pkg) tests/test_pytest_mock.py::test_missing_introspection tests/test_pytest_mock.py::test_abort_patch_context_manager_with_stale_pyc tests/test_pytest_mock.py::test_abort_patch_context_manager_with_stale_pyc $(PYTHON_DIR)/vendor-packages/pkg_resources/__init__.py:2871: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('repoze.sphinx')`. Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages declare_namespace(pkg) tests/test_pytest_mock.py::test_missing_introspection tests/test_pytest_mock.py::test_abort_patch_context_manager_with_stale_pyc tests/test_pytest_mock.py::test_abort_patch_context_manager_with_stale_pyc $(PYTHON_DIR)/vendor-packages/pkg_resources/__init__.py:2350: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('repoze')`. Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages declare_namespace(parent) tests/test_pytest_mock.py::test_missing_introspection tests/test_pytest_mock.py::test_abort_patch_context_manager_with_stale_pyc tests/test_pytest_mock.py::test_abort_patch_context_manager_with_stale_pyc $(PYTHON_DIR)/vendor-packages/pkg_resources/__init__.py:2871: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('sphinxcontrib')`. Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages declare_namespace(pkg) tests/test_pytest_mock.py::test_missing_introspection tests/test_pytest_mock.py::test_abort_patch_context_manager_with_stale_pyc tests/test_pytest_mock.py::test_abort_patch_context_manager_with_stale_pyc $(PYTHON_DIR)/vendor-packages/pkg_resources/__init__.py:2871: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('zc')`. Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages declare_namespace(pkg) tests/test_pytest_mock.py: 45 warnings $(PYTHON_DIR)/vendor-packages/pkg_resources/__init__.py:2871: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('zope')`. Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages declare_namespace(pkg) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ ======== 78 passed, 4 skipped, 75 warnings ======== ======== 78 passed, 4 skipped ======== py$(PYV): OK congratulations :)