From 65b41905f04fb4f80e24e1d2172380c432b68676 Mon Sep 17 00:00:00 2001 From: wwakabobik Date: Tue, 20 Aug 2024 22:12:25 +0200 Subject: [PATCH] 100% cover "reporter_utils" --- testrail_api_reporter/utils/logger_config.py | 2 -- tests/utils/test_reporter_utils_cqptions.py | 6 +++--- tests/utils/test_reporter_utils_init_get_cases.py | 6 +++--- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/testrail_api_reporter/utils/logger_config.py b/testrail_api_reporter/utils/logger_config.py index 9941a97..a926986 100644 --- a/testrail_api_reporter/utils/logger_config.py +++ b/testrail_api_reporter/utils/logger_config.py @@ -16,9 +16,7 @@ def setup_logger(name: str, log_file: str, level=logging.DEBUG): :param name: (string) Name of the logger. :param log_file: path to log_file :param level: logging level. Default is logging.DEBUG - :returns: logger object - """ formatter = logging.Formatter("%(asctime)s [%(levelname)s] %(name)s: %(message)s") diff --git a/tests/utils/test_reporter_utils_cqptions.py b/tests/utils/test_reporter_utils_cqptions.py index b426c2c..db07aea 100644 --- a/tests/utils/test_reporter_utils_cqptions.py +++ b/tests/utils/test_reporter_utils_cqptions.py @@ -6,9 +6,9 @@ from faker import Faker -from testrail_api_reporter.utils.reporter_utils import ( - check_captions_and_files -) # pylint: disable=import-error,no-name-in-module +from testrail_api_reporter.utils.reporter_utils import ( # pylint: disable=import-error,no-name-in-module + check_captions_and_files, +) faker = Faker() diff --git a/tests/utils/test_reporter_utils_init_get_cases.py b/tests/utils/test_reporter_utils_init_get_cases.py index f99d5d6..0eaa272 100644 --- a/tests/utils/test_reporter_utils_init_get_cases.py +++ b/tests/utils/test_reporter_utils_init_get_cases.py @@ -1,8 +1,8 @@ """Tests for the reporter_utils module, function 'init_get_cases_process'""" -from testrail_api_reporter.utils.reporter_utils import ( - init_get_cases_process -) # pylint: disable=import-error,no-name-in-module +from testrail_api_reporter.utils.reporter_utils import ( # pylint: disable=import-error,no-name-in-module + init_get_cases_process, +) def test_init_get_cases_process():