diff --git a/src/krkn_lib/models/elastic/models.py b/src/krkn_lib/models/elastic/models.py index 65341d8e..49ac882e 100644 --- a/src/krkn_lib/models/elastic/models.py +++ b/src/krkn_lib/models/elastic/models.py @@ -1,15 +1,16 @@ +import datetime + from elasticsearch_dsl import ( - Keyword, - Text, Date, Document, Float, - Long, - Nested, InnerDoc, Integer, + Keyword, + Long, + Nested, + Text, ) -import datetime from krkn_lib.models.telemetry import ChaosRunTelemetry diff --git a/src/krkn_lib/models/telemetry/models.py b/src/krkn_lib/models/telemetry/models.py index 7cde55ec..8932968e 100644 --- a/src/krkn_lib/models/telemetry/models.py +++ b/src/krkn_lib/models/telemetry/models.py @@ -1,9 +1,12 @@ from __future__ import annotations + import base64 import json -import yaml from dataclasses import dataclass from datetime import datetime, timezone + +import yaml + from krkn_lib.models.k8s import PodsStatus relevant_event_reasons: frozenset[str] = frozenset( diff --git a/src/krkn_lib/telemetry/ocp/krkn_telemetry_openshift.py b/src/krkn_lib/telemetry/ocp/krkn_telemetry_openshift.py index c5fab51e..1b25b5a7 100644 --- a/src/krkn_lib/telemetry/ocp/krkn_telemetry_openshift.py +++ b/src/krkn_lib/telemetry/ocp/krkn_telemetry_openshift.py @@ -4,6 +4,7 @@ import os import threading from queue import Queue + from krkn_lib.models.telemetry import ChaosRunTelemetry from krkn_lib.ocp import KrknOpenshift from krkn_lib.telemetry.k8s import KrknTelemetryKubernetes diff --git a/src/krkn_lib/tests/test_krkn_elastic.py b/src/krkn_lib/tests/test_krkn_elastic.py index d9dd93c9..ca76e3ba 100644 --- a/src/krkn_lib/tests/test_krkn_elastic.py +++ b/src/krkn_lib/tests/test_krkn_elastic.py @@ -1,13 +1,9 @@ import datetime import time - import uuid from krkn_lib.elastic.krkn_elastic import KrknElastic -from krkn_lib.models.elastic.models import ( - ElasticAlert, - ElasticMetric, -) +from krkn_lib.models.elastic.models import ElasticAlert, ElasticMetric from krkn_lib.models.telemetry import ChaosRunTelemetry from krkn_lib.tests import BaseTest from krkn_lib.utils import SafeLogger diff --git a/src/krkn_lib/tests/test_utils.py b/src/krkn_lib/tests/test_utils.py index 9c828b4e..40e4e44b 100644 --- a/src/krkn_lib/tests/test_utils.py +++ b/src/krkn_lib/tests/test_utils.py @@ -15,10 +15,10 @@ filter_dictionary, filter_log_line, find_executable_in_path, + get_junit_test_case, get_random_string, get_yaml_item_value, is_host_reachable, - get_junit_test_case, ) diff --git a/src/krkn_lib/tests/test_version.py b/src/krkn_lib/tests/test_version.py index 3c8a2fcf..c85ec7cd 100644 --- a/src/krkn_lib/tests/test_version.py +++ b/src/krkn_lib/tests/test_version.py @@ -1,6 +1,5 @@ -from krkn_lib.version import __version__ - from krkn_lib.tests import BaseTest +from krkn_lib.version import __version__ class VersionTest(BaseTest):