diff options
author | Zac Medico <zmedico@gentoo.org> | 2021-06-21 20:16:31 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2021-06-21 20:18:14 -0700 |
commit | 63890c82da54646f07ea58c92e86d51961e9f445 (patch) | |
tree | 3831ab427f859d7ab2cc393132a2b7903464bbe9 /dev-python/dbfread | |
parent | dev-python/leather: Enable unit tests (diff) | |
download | gentoo-63890c82da54646f07ea58c92e86d51961e9f445.tar.gz gentoo-63890c82da54646f07ea58c92e86d51961e9f445.tar.bz2 gentoo-63890c82da54646f07ea58c92e86d51961e9f445.zip |
dev-python/dbfread: Enable unit tests (bug 797310)
dbfread/test_field_parser.py::test_0 PASSED [ 6%]
dbfread/test_field_parser.py::test_C PASSED [ 12%]
dbfread/test_field_parser.py::test_D PASSED [ 18%]
dbfread/test_field_parser.py::test_F PASSED [ 25%]
dbfread/test_field_parser.py::test_I PASSED [ 31%]
dbfread/test_field_parser.py::test_L PASSED [ 37%]
dbfread/test_field_parser.py::test_M PASSED [ 43%]
dbfread/test_field_parser.py::test_B PASSED [ 50%]
dbfread/test_field_parser.py::test_N PASSED [ 56%]
dbfread/test_field_parser.py::test_O PASSED [ 62%]
dbfread/test_field_parser.py::test_T PASSED [ 68%]
dbfread/test_field_parser.py::test_Y PASSED [ 75%]
dbfread/test_field_parser.py::test_hex_field PASSED [ 81%]
dbfread/test_invalid_value.py::test_repr PASSED [ 87%]
dbfread/test_invalid_value.py::test_type PASSED [ 93%]
dbfread/test_memo.py::test_missing_memofile PASSED [100%]
Reported-py: Michał Górny <mgorny@gentoo.org>
Closes: https://bugs.gentoo.org/797310
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'dev-python/dbfread')
-rw-r--r-- | dev-python/dbfread/Manifest | 1 | ||||
-rw-r--r-- | dev-python/dbfread/dbfread-2.0.7.ebuild | 25 |
2 files changed, 25 insertions, 1 deletions
diff --git a/dev-python/dbfread/Manifest b/dev-python/dbfread/Manifest index f6f5ebe70b1f..0d551756ca38 100644 --- a/dev-python/dbfread/Manifest +++ b/dev-python/dbfread/Manifest @@ -1 +1,2 @@ +DIST dbfread-2.0.7-src.tar.gz 33045 BLAKE2B 96798f00aba4c30e7e83b468f368ca6730a7e095c9fec5bf5515ac6a152022adbf5339cd9e68e85f4eccac211ed4e307b9abf22249ef6420d722fa213210d7d7 SHA512 cf591fa5800e5471025175a4bbbb54cb26dc2a83bf328776e4386860370d9421edd9edd62cb9e3d463794d526c561a0f4744bb67b5e376edd471dc95100bc2c7 DIST dbfread-2.0.7.tar.gz 33212 BLAKE2B 03c9a0d93b13c7573b5bcec6c5af1ac43bd00ead2b3e83638f45344b2344062e86d764b095e699afdaea2405176ee15122c975a2f72b25bd167f5faaaf33043b SHA512 86c3a29e351b985984be67401a6dfe3e39cd92451a122788ade83d65313dde37a3706ce36c4365bd36ba1df62ee057b625f1e0f077aa4a248c7456258189f548 diff --git a/dev-python/dbfread/dbfread-2.0.7.ebuild b/dev-python/dbfread/dbfread-2.0.7.ebuild index f9a2f5858661..a2df96057106 100644 --- a/dev-python/dbfread/dbfread-2.0.7.ebuild +++ b/dev-python/dbfread/dbfread-2.0.7.ebuild @@ -9,9 +9,32 @@ inherit distutils-r1 DESCRIPTION="Read DBF Files with Python" HOMEPAGE="https://github.com/olemb/dbfread https://pypi.org/project/dbfread/" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz + test? ( https://github.com/olemb/dbfread/archive/refs/tags/${PV}.tar.gz -> ${P}-src.tar.gz )" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" IUSE="" RDEPEND="" + +distutils_enable_tests pytest + +python_prepare_all() { + sed -e 's|\[pytest\]|[tool:pytest]|' -i setup.cfg || die + distutils-r1_python_prepare_all +} + +python_test() { + local pytest_args test_name xfails + + xfails=( + dbfread/test_read_and_length.py::test_len + dbfread/test_read_and_length.py::test_list + ) + + for test_name in "${xfails[@]}"; do + pytest_args+=(--deselect "${test_name}") + done + + epytest "${pytest_args[@]}" || die +} |