Date: Wednesday, September 15, 2021 @ 20:51:25 Author: dvzrv Revision: 1016080
upgpkg: python-pytest-mock 3.6.1-1: Upgrade to 3.6.1. Run all tests and disable those that seemingly require the plugin to be installed system-wide. Modified: python-pytest-mock/trunk/PKGBUILD ----------+ PKGBUILD | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2021-09-15 20:42:58 UTC (rev 1016079) +++ PKGBUILD 2021-09-15 20:51:25 UTC (rev 1016080) @@ -1,7 +1,7 @@ # Maintainer: Felix Yan <[email protected]> pkgname=python-pytest-mock -pkgver=3.1.1 +pkgver=3.6.1 pkgrel=1 pkgdesc="Thin-wrapper around the mock package for easier use with py.test" arch=('any') @@ -9,15 +9,13 @@ url="https://github.com/pytest-dev/pytest-mock/" depends=('python-pytest') makedepends=('python-setuptools-scm') -# TODO: figure out why they fail -#checkdepends=('python-pytest-asyncio') +checkdepends=('python-pytest-asyncio') source=("https://github.com/pytest-dev/pytest-mock/archive/v$pkgver/$pkgname-$pkgver.tar.gz") -sha512sums=('341ff1251b60a9f61f46f6ee5658337beee4ba903c7fc6b6ac9d1d6369316d70b25ce14fa57e928110bd42b9d0872cd34e5db47d51af4e2291580ac0f5c874ed') +sha512sums=('0a227799af85e4703bef32cf7922573a69ec84fbe35b502b5b96a660a8baa42b9fb1ff8d93115461d23af0c1b18c45cdc67e4695a31713c6553ffc73053448ad') -export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver - build() { cd pytest-mock-$pkgver + export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver python setup.py build } @@ -24,7 +22,17 @@ check() { cd pytest-mock-$pkgver python setup.py egg_info - PYTHONPATH="$PWD:$PWD/src" pytest + export PYTHONPATH="src:${PYTHONPATH}" + # disable all tests that require the plugin to be installed + pytest -v --assert=plain \ + -k "not test_used_with_session_scope \ + and not test_used_with_package_scope \ + and not test_used_with_module_scope \ + and not test_used_with_class_scope \ + and not test_monkeypatch_ini \ + and not test_monkeypatch_native \ + and not test_standalone_mock \ + and not test_plain_stopall" } package() {
