Files
Leon Anavi ac8b9b8f13 python3-pytest-mock: Upgrade 3.15.1 -> 3.17.0
Upgrade to release 3.17.0:

- Failures of mock assertions such as assert_called_with are
  again reported only once, instead of two or three times with the
  original error from the mock module chained before them.
- Mock assertion failures no longer show misleading
  introspection when they are not about the arguments of the last
  call: assert_called, assert_called_once, assert_not_called,
  assert_any_call, their await counterparts, and
  assert_called_once_with/assert_awaited_once_with when the mock
  was not called (awaited) exactly once. The introspection also no
  longer reports arguments passed by position versus by keyword as
  different for autospecced mocks, and no longer shows empty
  Args:/Kwargs: sections when assertion rewriting is not available.
- assert_has_calls and assert_has_awaits failures no longer show
  pytest introspection, which compared the expected and actual
  calls position by position and so reported differences between
  unrelated calls. The mock's own message, listing the expected
  and actual calls, is still shown.

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-10-27 13:06:53 -07:00

32 lines
779 B
BlitzBasic

SUMMARY = "Thin-wrapper around the mock package for easier use with pytest"
HOMEPAGE = "https://github.com/pytest-dev/pytest-mock/"
LICENSE = "MIT"
LIC_FILES_CHKSUM = " \
file://LICENSE;md5=b2ddb1e69238461b7e4ef2a84d874109 \
"
SRC_URI += " \
file://run-ptest \
"
SRC_URI[sha256sum] = "e36576e0985e01027e999891e7a966c67822d40c89ef1b4c8b6e22737e3590b4"
inherit pypi python_setuptools_build_meta ptest
DEPENDS += "python3-setuptools-scm-native"
RDEPENDS:${PN}-ptest += " \
python3-asyncio \
python3-misc \
python3-mock \
python3-pytest \
python3-pytest-asyncio \
python3-threading \
python3-tox \
python3-unittest-automake-output \
"
do_install_ptest() {
install -d ${D}${PTEST_PATH}/tests
cp -rf ${S}/tests ${D}${PTEST_PATH}/
}