From fc0eb99d79c97b286320cb0a24b2a1267247974b Mon Sep 17 00:00:00 2001 From: vil02 <65706193+vil02@users.noreply.github.com> Date: Fri, 24 Jan 2025 16:44:10 +0100 Subject: [PATCH] [style] Remove unused imports --- fixcore/tests/fixcore/config/config_handler_service_test.py | 3 +-- fixcore/tests/fixcore/conftest.py | 2 -- fixcore/tests/fixcore/web/content_renderer_test.py | 1 - fixlib/test/test_config.py | 2 +- fixlib/test/test_web.py | 1 - plugins/k8s/test/resources_test.py | 2 +- 6 files changed, 3 insertions(+), 8 deletions(-) diff --git a/fixcore/tests/fixcore/config/config_handler_service_test.py b/fixcore/tests/fixcore/config/config_handler_service_test.py index 0e034a97cf..0ed9d56905 100644 --- a/fixcore/tests/fixcore/config/config_handler_service_test.py +++ b/fixcore/tests/fixcore/config/config_handler_service_test.py @@ -1,5 +1,5 @@ from textwrap import dedent -from typing import List, cast, Dict +from typing import List, cast import os import pytest @@ -13,7 +13,6 @@ from tests.fixcore.message_bus_test import wait_for_message from fixcore.model.model import Kind, ComplexKind, Property from fixcore.model.typed_model import to_js, from_js -from fixcore.types import Json from types import SimpleNamespace diff --git a/fixcore/tests/fixcore/conftest.py b/fixcore/tests/fixcore/conftest.py index 5c72f2d5ca..71a8516c35 100644 --- a/fixcore/tests/fixcore/conftest.py +++ b/fixcore/tests/fixcore/conftest.py @@ -36,8 +36,6 @@ from fixcore.core_config import ( GraphConfig, CoreConfig, - EditableConfig, - DatabaseConfig, RuntimeConfig, CustomCommandsConfig, SnapshotsScheduleConfig, diff --git a/fixcore/tests/fixcore/web/content_renderer_test.py b/fixcore/tests/fixcore/web/content_renderer_test.py index f37cf276e5..3c2d491297 100644 --- a/fixcore/tests/fixcore/web/content_renderer_test.py +++ b/fixcore/tests/fixcore/web/content_renderer_test.py @@ -22,7 +22,6 @@ json_array_gen, json_simple_element_gen, node_gen, - graph_stream, ) diff --git a/fixlib/test/test_config.py b/fixlib/test/test_config.py index 61c18c92b0..b988a10cf9 100644 --- a/fixlib/test/test_config.py +++ b/fixlib/test/test_config.py @@ -3,7 +3,7 @@ from attrs import define, field from typing import ClassVar, Dict, Any -from fixlib.baseresources import BaseResource, BaseSecurityGroup +from fixlib.baseresources import BaseSecurityGroup from fixlib.config import Config, ConfigNotFoundError from fixlib.args import get_arg_parser, ArgumentParser from fixlib.core import add_args as core_add_args diff --git a/fixlib/test/test_web.py b/fixlib/test/test_web.py index a12ba0a5d0..f0b415ca76 100644 --- a/fixlib/test/test_web.py +++ b/fixlib/test/test_web.py @@ -2,7 +2,6 @@ import tempfile import time -import cherrypy import requests from fixlib.utils import get_free_port diff --git a/plugins/k8s/test/resources_test.py b/plugins/k8s/test/resources_test.py index 84a8726e57..d6d5213e8a 100644 --- a/plugins/k8s/test/resources_test.py +++ b/plugins/k8s/test/resources_test.py @@ -7,7 +7,7 @@ from fixlib.types import Json # noinspection PyUnresolvedReferences -from typing import Type, Tuple, TypeVar, List +from typing import Type, Tuple, List import pytest # noinspection PyUnresolvedReferences