mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-08 02:51:56 +01:00
56 lines
4.1 KiB
Plaintext
56 lines
4.1 KiB
Plaintext
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
pkgname=py3-pytest-factoryboy
|
|
pkgver=2.7.0
|
|
pkgrel=1
|
|
_gittag=8c1809a71eb9537a2a4882a6831d0b05df0ecd87
|
|
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
|
|
_pkgreal=pytest-factoryboy
|
|
pkgdesc="Factory Boy support for pytest."
|
|
url="https://pypi.python.org/project/pytest-factoryboy"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="py3-pytest py3-inflection py3-factory-boy py3-typing-extensions"
|
|
checkdepends="py3-tox py3-coverage py3-mypy"
|
|
makedepends="py3-setuptools py3-gpep517 py3-wheel py3-poetry-core"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-factoryboy/archive/$_gittag.tar.gz"
|
|
builddir="$srcdir/$_pkgreal-$_gittag"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer "$builddir"/.dist/*.whl
|
|
# FAILED tests/test_model_name.py::test_generic_model_with_custom_name_no_warning - TypeError: RunResult.assert_outcomes() got an unexpected keyword argument 'error'
|
|
# FAILED tests/test_model_name.py::test_generic_model_name_raises_warning - TypeError: RunRes[ult.assert_outcomes() got an unexpected keyword argument 'error'
|
|
# FAILED tests/test_model_name.py::test_generic_model_with_register_override_no_warning - TypeError: RunResult.assert_outcomes() got an unexpected keyword argument 'error'
|
|
# FAILED tests/test_model_name.py::test_using_generic_model_name_for_subfactory_raises_warning - TypeError: RunResult.assert_outcomes() got an unexpected keyword argument 'error'
|
|
# FAILED tests/test_postgen_dependencies.py::test_getfixturevalue - AttributeError: 'str' object has no attribute 'iter_parents'
|
|
# ERROR tests/test_circular.py::test_circular - AttributeError: 'str' object has no attribute 'iter_parents'
|
|
# ERROR tests/test_factory_fixtures.py::test_model - AttributeError: 'str' object has no attribute 'iter_parents'
|
|
# ERROR tests/test_factory_fixtures.py::test_parametrized[2000-Bill Gates-1.0-PyTest for Dummies] - AttributeError: 'str' object has no attribute 'iter_parents'
|
|
# ERROR tests/test_factory_fixtures.py::TestLazyFixture::test_lazy_fixture_name[book__author0] - AttributeError: 'str' object has no attribute 'iter_parents'
|
|
# ERROR tests/test_factory_fixtures.py::TestLazyFixture::test_lazy_fixture_callable[book__author0] - AttributeError: 'str' object has no attribute 'iter_parents'
|
|
# ERROR tests/test_factory_fixtures.py::TestLazyFixture::test_override_subfactory_with_lazy_fixture - AttributeError: 'str' object has no attribute 'iter_parents'
|
|
# ERROR tests/test_postgen_dependencies.py::test_postgen_invoked - AttributeError: 'str' object has no attribute 'iter_parents'
|
|
# ERROR tests/test_postgen_dependencies.py::test_depends_on[1-3] - AttributeError: 'str' object has no attribute 'iter_parents'
|
|
# ERROR tests/test_postgen_dependencies.py::test_after_postgeneration - AttributeError: 'str' object has no attribute 'iter_parents'
|
|
# ERROR tests/test_postgen_dependencies.py::test_postgeneration_fixture[123] - AttributeError: 'str' object has no attribute 'iter_parents'
|
|
# ERROR tests/test_postgen_dependencies.py::test_postgenerationmethodcall_fixture[test secret-456] - AttributeError: 'str' object has no attribute 'iter_parents'
|
|
.testenv/bin/python3 -m pytest -v -k 'not test_generic_model and not test_using_generic_model_name_for_subfactory_raises_warning and not test_getfixturevalue and not test_model and not test_parametrized and not test_lazy_fixture_name and not test_lazy_fixture_callable and not test_override_subfactory_with_lazy_fixture and not test_postgen_invoked and not test_depends_on and not test_after_postgeneration and not test_postgeneration_fixture and not test_postgenerationmethodcall_fixture and not test_circular'
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
94f88b707325e1b5b1d042785d54456d2d7a8b5f2805ba1d949e3f73157640d7cc39d5b678f245516fcf7b4619a2c6d4f7c0ffd0b79051fdc70a17e73446b62b py3-pytest-factoryboy-2.7.0.tar.gz
|
|
"
|