summaryrefslogtreecommitdiff
path: root/dev-python/pytest-mock
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/pytest-mock')
-rw-r--r--dev-python/pytest-mock/Manifest2
-rw-r--r--dev-python/pytest-mock/pytest-mock-3.17.0.ebuild43
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-python/pytest-mock/Manifest b/dev-python/pytest-mock/Manifest
index 30be9eeb6a91..0a6ea0a8c3b4 100644
--- a/dev-python/pytest-mock/Manifest
+++ b/dev-python/pytest-mock/Manifest
@@ -2,3 +2,5 @@ DIST pytest_mock-3.15.1.tar.gz 34036 BLAKE2B bfd7a4ec32612b4a4351c43ff36e7a4ab05
DIST pytest_mock-3.15.1.tar.gz.provenance 10055 BLAKE2B 158410280dd839301fceb807ba80c199d248efd38b643e5bed0938e041fcbe99e3a6f04cda0f1aa4b2ad226331ede1a2477425e6c477e636e371d4e54e33eb64 SHA512 356eddc3637f622b53ff7791474d82ff116b0ce16414b8ee5b595cd3dd08b32c266e5e133ce79281775f1826613fb5ed01643aa87abcbd816c3a178120a49198
DIST pytest_mock-3.16.0.tar.gz 35362 BLAKE2B 48a259f7cc4349b69813bfb3933d6c6db38765ce872b7263201560b7375c2d28044ae93b184bb248ff4f1ccd62dcb8d5dce3e88555213874c1711ad219e09771 SHA512 fbaa1ee9d4d4d12a28aa62e09f22ddd6eada041faddcadd58291dbb9c2e5d24143fe2c74516f0444ed61786ee6b3a6e3f0969188e792ffbab8fa05b7d28bd86f
DIST pytest_mock-3.16.0.tar.gz.provenance 10095 BLAKE2B b031154665a1d6b1f9d8f5d738ae6766ec0655520d21ae9ca0d508080b37f32c1d0263c730152eb83c2dec16422cfb4480cd69c12538c70a52acea124e0442cb SHA512 3d4a406449f0773f22e029b8587b77b7bb683569091a24bccdf70c43da0b99b53583a9d520eea93e7046f9fa14d9403e2b1b00a61de10c28ce77b9962b2cff06
+DIST pytest_mock-3.17.0.tar.gz 43064 BLAKE2B 739bd2c3ec2075ad7b51d41b0a8e90ae8ef25975699e403748de4e5090bb15ee64044e7ba2e2f00842451162f18b7f03c29b9941ab63788d17052e9cb6734f5a SHA512 e9948a8086ced8366f3de291950258b145e78977dc1e873147d9045e2676ad0bd40a7362c2f2cf2a5c7583d9a5668c09d49c971427d85d8cf0ad4a8a3985c873
+DIST pytest_mock-3.17.0.tar.gz.provenance 10120 BLAKE2B 8b3309a9c6d7e0ba5bcc968be226dd651d4d66e2f92603179c7eb6e4615a22ee0609d645c4b955a5647ae9d267f4cbb983016815394ba2a44294b1793ee7108f SHA512 88d1b47c2b2d3c84d4031d164de95827e4acf69bf2a2e33d2b8f36a63b2d2122e1645de5d0e60d77d711231482f36677032d7d5265ca1572306f4f03a3138db0
diff --git a/dev-python/pytest-mock/pytest-mock-3.17.0.ebuild b/dev-python/pytest-mock/pytest-mock-3.17.0.ebuild
new file mode 100644
index 000000000000..b714251e427e
--- /dev/null
+++ b/dev-python/pytest-mock/pytest-mock-3.17.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYPI_VERIFY_REPO=https://github.com/pytest-dev/pytest-mock
+PYTHON_COMPAT=( python3_{13..14} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Thin-wrapper around the mock package for easier use with pytest"
+HOMEPAGE="
+ https://github.com/pytest-dev/pytest-mock/
+ https://pypi.org/project/pytest-mock/
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos"
+
+RDEPEND="
+ >=dev-python/pytest-6.2.5[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ dev-python/setuptools-scm[${PYTHON_USEDEP}]
+"
+
+EPYTEST_PLUGINS=( "${PN}" pytest-asyncio )
+EPYTEST_PLUGIN_LOAD_VIA_ENV=1
+distutils_enable_tests pytest
+
+python_test() {
+ local EPYTEST_DESELECT=()
+
+ if has_version dev-python/mock; then
+ EPYTEST_DESELECT+=(
+ tests/test_pytest_mock.py::test_standalone_mock
+ )
+ fi
+
+ epytest --assert=plain
+}