From 8b121974a32d71df5aac784291f9bfe5ea9f5f48 Mon Sep 17 00:00:00 2001 From: Max Maass Date: Thu, 19 Dec 2024 16:05:20 +0100 Subject: [PATCH] Satisfy ruff --- tests/conftest.py | 1 - tests/monitors/client/test_client_with_sensitive_role.py | 2 +- tests/monitors/client/test_client_with_sensitive_scope.py | 2 -- .../protocol_mapper/test_protocol_mapper_with_config.py | 1 - 4 files changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index a193187..fb751fa 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -4,7 +4,6 @@ import pytest import os -from kcwarden.custom_types.database import Database from kcwarden.custom_types.keycloak_object import ( Realm, Client, diff --git a/tests/monitors/client/test_client_with_sensitive_role.py b/tests/monitors/client/test_client_with_sensitive_role.py index 894c35b..e60d7ad 100644 --- a/tests/monitors/client/test_client_with_sensitive_role.py +++ b/tests/monitors/client/test_client_with_sensitive_role.py @@ -235,7 +235,7 @@ def test_client_has_some_way_of_mapping_roles_but_not_without_anything(self, mon ] ) # fmt: on - def test_audit( + def test_audit( # noqa: PLR0915 self, db_backed_monitor, create_mock_scope, diff --git a/tests/monitors/client/test_client_with_sensitive_scope.py b/tests/monitors/client/test_client_with_sensitive_scope.py index f80e89f..65d96c7 100644 --- a/tests/monitors/client/test_client_with_sensitive_scope.py +++ b/tests/monitors/client/test_client_with_sensitive_scope.py @@ -1,9 +1,7 @@ import pytest -from unittest.mock import Mock from kcwarden.monitors.client.client_with_sensitive_scope import ClientWithSensitiveScope from kcwarden.custom_types import config_keys -from kcwarden.custom_types.keycloak_object import ClientScope class TestClientWithSensitiveScope: diff --git a/tests/monitors/protocol_mapper/test_protocol_mapper_with_config.py b/tests/monitors/protocol_mapper/test_protocol_mapper_with_config.py index 072ca26..6d7774a 100644 --- a/tests/monitors/protocol_mapper/test_protocol_mapper_with_config.py +++ b/tests/monitors/protocol_mapper/test_protocol_mapper_with_config.py @@ -2,7 +2,6 @@ from unittest.mock import Mock from kcwarden.monitors.protocol_mapper.protocol_mapper_with_config import ProtocolMapperWithConfig -from kcwarden.custom_types.keycloak_object import ClientScope from kcwarden.custom_types import config_keys