diff options
author | robot-piglet <[email protected]> | 2025-06-10 07:58:52 +0300 |
---|---|---|
committer | robot-piglet <[email protected]> | 2025-06-10 08:09:57 +0300 |
commit | 94c126df37bf4bb3865934508de384037935638b (patch) | |
tree | 8b2c60e867844547388f3266da370c9b8ea5e181 | |
parent | 686b7126cb55601e05506a4a890e6f442703306b (diff) |
Intermediate changes
commit_hash:1d18a3a019a737415b5508c62390d6373071cf9f
5 files changed, 24 insertions, 16 deletions
diff --git a/contrib/python/pytest-mock/py3/.dist-info/METADATA b/contrib/python/pytest-mock/py3/.dist-info/METADATA index 1ffa498c292..701f4300081 100644 --- a/contrib/python/pytest-mock/py3/.dist-info/METADATA +++ b/contrib/python/pytest-mock/py3/.dist-info/METADATA @@ -1,6 +1,6 @@ -Metadata-Version: 2.1 +Metadata-Version: 2.4 Name: pytest-mock -Version: 3.14.0 +Version: 3.14.1 Summary: Thin-wrapper around the mock package for easier use with pytest Author-email: Bruno Oliveira <[email protected]> License: MIT @@ -22,15 +22,18 @@ Classifier: Programming Language :: Python :: 3.9 Classifier: Programming Language :: Python :: 3.10 Classifier: Programming Language :: Python :: 3.11 Classifier: Programming Language :: Python :: 3.12 +Classifier: Programming Language :: Python :: 3.13 +Classifier: Programming Language :: Python :: 3.14 Classifier: Topic :: Software Development :: Testing Requires-Python: >=3.8 Description-Content-Type: text/x-rst License-File: LICENSE -Requires-Dist: pytest >=6.2.5 +Requires-Dist: pytest>=6.2.5 Provides-Extra: dev -Requires-Dist: pre-commit ; extra == 'dev' -Requires-Dist: pytest-asyncio ; extra == 'dev' -Requires-Dist: tox ; extra == 'dev' +Requires-Dist: pre-commit; extra == "dev" +Requires-Dist: pytest-asyncio; extra == "dev" +Requires-Dist: tox; extra == "dev" +Dynamic: license-file =========== pytest-mock diff --git a/contrib/python/pytest-mock/py3/pytest_mock/_version.py b/contrib/python/pytest-mock/py3/pytest_mock/_version.py index 431bd6d8195..7c4035f98f9 100644 --- a/contrib/python/pytest-mock/py3/pytest_mock/_version.py +++ b/contrib/python/pytest-mock/py3/pytest_mock/_version.py @@ -1,8 +1,13 @@ -# file generated by setuptools_scm +# file generated by setuptools-scm # don't change, don't track in version control + +__all__ = ["__version__", "__version_tuple__", "version", "version_tuple"] + TYPE_CHECKING = False if TYPE_CHECKING: - from typing import Tuple, Union + from typing import Tuple + from typing import Union + VERSION_TUPLE = Tuple[Union[int, str], ...] else: VERSION_TUPLE = object @@ -12,5 +17,5 @@ __version__: str __version_tuple__: VERSION_TUPLE version_tuple: VERSION_TUPLE -__version__ = version = '3.14.0' -__version_tuple__ = version_tuple = (3, 14, 0) +__version__ = version = '3.14.1' +__version_tuple__ = version_tuple = (3, 14, 1) diff --git a/contrib/python/pytest-mock/py3/pytest_mock/plugin.py b/contrib/python/pytest-mock/py3/pytest_mock/plugin.py index 1e0a0b20255..50dc06ab7cc 100644 --- a/contrib/python/pytest-mock/py3/pytest_mock/plugin.py +++ b/contrib/python/pytest-mock/py3/pytest_mock/plugin.py @@ -1,4 +1,3 @@ -import asyncio import builtins import functools import inspect @@ -196,7 +195,7 @@ class MockerFixture: spy_obj.spy_return_list.append(r) return r - if asyncio.iscoroutinefunction(method): + if inspect.iscoroutinefunction(method): wrapped = functools.update_wrapper(async_wrapper, method) else: wrapped = functools.update_wrapper(wrapper, method) @@ -265,7 +264,7 @@ class MockerFixture: "Mocks returned by pytest-mock do not need to be used as context managers. " "The mocker fixture automatically undoes mocking at the end of a test. " "This warning can be ignored if it was triggered by mocking a context manager. " - "https://pytest-mock.readthedocs.io/en/latest/remarks.html#usage-as-context-manager", + "https://pytest-mock.readthedocs.io/en/latest/usage.html#usage-as-context-manager", PytestMockWarning, stacklevel=5, ) diff --git a/contrib/python/pytest-mock/py3/tests/test_pytest_mock.py b/contrib/python/pytest-mock/py3/tests/test_pytest_mock.py index 7831ddc3000..43fdb3858b5 100644 --- a/contrib/python/pytest-mock/py3/tests/test_pytest_mock.py +++ b/contrib/python/pytest-mock/py3/tests/test_pytest_mock.py @@ -13,6 +13,7 @@ from unittest.mock import AsyncMock from unittest.mock import MagicMock import pytest + from pytest_mock import MockerFixture from pytest_mock import PytestMockWarning @@ -1007,7 +1008,7 @@ def test_warn_patch_object_context_manager(mocker: MockerFixture) -> None: "Mocks returned by pytest-mock do not need to be used as context managers. " "The mocker fixture automatically undoes mocking at the end of a test. " "This warning can be ignored if it was triggered by mocking a context manager. " - "https://pytest-mock.readthedocs.io/en/latest/remarks.html#usage-as-context-manager" + "https://pytest-mock.readthedocs.io/en/latest/usage.html#usage-as-context-manager" ) with pytest.warns( @@ -1024,7 +1025,7 @@ def test_warn_patch_context_manager(mocker: MockerFixture) -> None: "Mocks returned by pytest-mock do not need to be used as context managers. " "The mocker fixture automatically undoes mocking at the end of a test. " "This warning can be ignored if it was triggered by mocking a context manager. " - "https://pytest-mock.readthedocs.io/en/latest/remarks.html#usage-as-context-manager" + "https://pytest-mock.readthedocs.io/en/latest/usage.html#usage-as-context-manager" ) with pytest.warns( diff --git a/contrib/python/pytest-mock/py3/ya.make b/contrib/python/pytest-mock/py3/ya.make index 7b9bcc9b14f..3d080562b58 100644 --- a/contrib/python/pytest-mock/py3/ya.make +++ b/contrib/python/pytest-mock/py3/ya.make @@ -2,7 +2,7 @@ PY3_LIBRARY() -VERSION(3.14.0) +VERSION(3.14.1) LICENSE(MIT) |