""" testing get_radius_token """ import json import logging import pytest # pylint: disable=unused-import from testutils import client, client_configfile from kanidm import KanidmClient logging.basicConfig(level=logging.DEBUG) RADIUS_TEST_USER = "test" @pytest.mark.network @pytest.mark.asyncio async def test_radius_call(client_configfile: KanidmClient) -> None: """tests the radius call step""" print("Doing auth_init using token") if client_configfile.config.auth_token is None: raise ValueError("This path shouldn't be possible in the test!") result = await client_configfile.get_radius_token(RADIUS_TEST_USER) print(f"{result=}") print(json.dumps(result.dict(), indent=4, default=str))