From 4bbe50f2a6a056f7fab3870c02685bf5172fe115 Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Tue, 24 Oct 2023 20:23:41 +0000 Subject: Adding metadata --- .../python-json-logger/python-json-logger-2.0.7.ebuild | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'dev-python/python-json-logger') diff --git a/dev-python/python-json-logger/python-json-logger-2.0.7.ebuild b/dev-python/python-json-logger/python-json-logger-2.0.7.ebuild index b9c3262a082f..516a333a492e 100644 --- a/dev-python/python-json-logger/python-json-logger-2.0.7.ebuild +++ b/dev-python/python-json-logger/python-json-logger-2.0.7.ebuild @@ -19,4 +19,20 @@ LICENSE="BSD" SLOT="0" KEYWORDS="amd64 arm arm64 hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86" -distutils_enable_tests unittest +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=() + case ${EPYTHON} in + python3.12) + EPYTEST_DESELECT+=( + tests/test_jsonlogger.py::TestJsonLogger::test_custom_object_serialization + tests/test_jsonlogger.py::TestJsonLogger::test_percentage_format + tests/test_jsonlogger.py::TestJsonLogger::test_rename_reserved_attrs + ) + ;; + esac + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +} -- cgit v1.3.1