python3Packages.python-keycloak: enable checks

This commit is contained in:
Martin Joerg
2026-02-25 09:54:16 +00:00
parent 4a485c4265
commit 1c44a8ef54
@@ -9,6 +9,9 @@
poetry-core,
requests,
requests-toolbelt,
freezegun,
pytest-asyncio,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
@@ -40,8 +43,26 @@ buildPythonPackage (finalAttrs: {
requests-toolbelt
];
# Test fixtures require a running keycloak instance
doCheck = false;
nativeCheckInputs = [
freezegun
pytest-asyncio
pytestCheckHook
];
# conftest.py requires these variables to be set,
# even if the respective tests are disabled
preCheck = ''
export KEYCLOAK_{HOST,PORT,ADMIN{,_PASSWORD}}=
'';
disabledTestPaths = [
# these tests require a running keycloak instance
"tests/test_keycloak_openid.py"
"tests/test_keycloak_admin.py"
"tests/test_keycloak_uma.py"
# requires docker
"tests/test_pkce_flow.py"
];
pythonImportsCheck = [ "keycloak" ];