Browse Source

fix: deprecation warnings in keycloak_admin.py (#425)

* fix: deprecation warnings in keycloak_admin.py

* fix: Set auto_refresh_token only when needed
pull/429/head v2.15.2
Petr Hála 2 years ago
committed by GitHub
parent
commit
1bdda5f2ae
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 458
      src/keycloak/keycloak_admin.py
  2. 1
      tests/test_keycloak_admin.py

458
src/keycloak/keycloak_admin.py
File diff suppressed because it is too large
View File

1
tests/test_keycloak_admin.py

@ -46,7 +46,6 @@ def test_keycloak_admin_init(env):
assert admin.password == env.KEYCLOAK_ADMIN_PASSWORD, admin.password
assert admin.totp is None, admin.totp
assert admin.token is not None, admin.token
assert admin.auto_refresh_token == list(), admin.auto_refresh_token
assert admin.user_realm_name is None, admin.user_realm_name
assert admin.custom_headers is None, admin.custom_headers
assert admin.token

Loading…
Cancel
Save