From 2820d0b3c8193a1b89a30a751c1ef6b513edb51f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastian=20Clerson?= Date: Thu, 17 Aug 2023 14:16:00 +0200 Subject: [PATCH] chore: run pre-commit hooks --- docs/whats_new/version_0_23_0.rst | 2 +- examples/uds.yaml | 2 +- src/pykiso/logging_initializer.py | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/whats_new/version_0_23_0.rst b/docs/whats_new/version_0_23_0.rst index 7973e03e..1942172f 100644 --- a/docs/whats_new/version_0_23_0.rst +++ b/docs/whats_new/version_0_23_0.rst @@ -29,7 +29,7 @@ Add changeable logger class for the test Add the possibility to change the logger class with the CLI. For more information please refer to :ref:`change_logger_class`. -Add shutdown method to CCHannel +Add shutdown method to CCHannel ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Add proper shutdown method for connector instead of instead of using diff --git a/examples/uds.yaml b/examples/uds.yaml index 87d77560..34fead7b 100644 --- a/examples/uds.yaml +++ b/examples/uds.yaml @@ -42,4 +42,4 @@ connectors: test_suite_list: - suite_dir: test_uds test_filter_pattern: 'test_raw_uds*.py' - test_suite_id: 1 \ No newline at end of file + test_suite_id: 1 diff --git a/src/pykiso/logging_initializer.py b/src/pykiso/logging_initializer.py index 30813492..3529d7f8 100644 --- a/src/pykiso/logging_initializer.py +++ b/src/pykiso/logging_initializer.py @@ -304,9 +304,7 @@ def change_logger_class(log_level: str, verbose: bool, logger: str): logger_class = import_object(logger_class) # We modify the init function so that the logger only need the name to be initialized if kwargs_log: - logger_class.__init__ = partialmethod( - logger_class.__init__, **kwargs_log - ) + logger_class.__init__ = partialmethod(logger_class.__init__, **kwargs_log) # Change logging.root since test can use logging.info for example logging.root = logger_class(name="root", level=LEVELS[log_level]) # Remove the handler from the new logger else the handler will be called twice with the handler from the root