From 624a9ab9942266a02b9483a46e401eb9915a51ad Mon Sep 17 00:00:00 2001 From: "d.kovalenko" Date: Tue, 8 Jul 2025 13:38:43 +0300 Subject: [PATCH 1/2] conftest is updated [reorder] --- tests/conftest.py | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index a76f2eb..9d09bd0 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -20,6 +20,10 @@ C_ROOT_DIR__RELATIVE = ".." +# ///////////////////////////////////////////////////////////////////////////// + +T_TUPLE__str_int = typing.Tuple[str, int] + # ///////////////////////////////////////////////////////////////////////////// # T_PLUGGY_RESULT @@ -29,21 +33,22 @@ T_PLUGGY_RESULT = pluggy.Result # ///////////////////////////////////////////////////////////////////////////// -# TestConfigPropNames - -class TestConfigPropNames: - TEST_CFG__LOG_DIR = "TEST_CFG__LOG_DIR" +g_error_msg_count_key = pytest.StashKey[int]() +g_warning_msg_count_key = pytest.StashKey[int]() +g_critical_msg_count_key = pytest.StashKey[int]() # ///////////////////////////////////////////////////////////////////////////// +# TestConfigPropNames + +class TestConfigPropNames: + TEST_CFG__LOG_DIR = "TEST_CFG__LOG_DIR" -T_TUPLE__str_int = typing.Tuple[str, int] # ///////////////////////////////////////////////////////////////////////////// # TestStartupData__Helper - class TestStartupData__Helper: sm_StartTS = datetime.datetime.now() @@ -346,13 +351,6 @@ def helper__build_test_id(item: pytest.Function) -> str: # ///////////////////////////////////////////////////////////////////////////// -g_error_msg_count_key = pytest.StashKey[int]() -g_warning_msg_count_key = pytest.StashKey[int]() -g_critical_msg_count_key = pytest.StashKey[int]() - -# ///////////////////////////////////////////////////////////////////////////// - - def helper__makereport__setup( item: pytest.Function, call: pytest.CallInfo, outcome: T_PLUGGY_RESULT ): From e3dade42317edffe808d4c9dc98a76bb415cb7a5 Mon Sep 17 00:00:00 2001 From: "d.kovalenko" Date: Tue, 8 Jul 2025 13:49:42 +0300 Subject: [PATCH 2/2] conftest is updated [formatting] --- tests/conftest.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index 9d09bd0..fbbd2d6 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -873,7 +873,9 @@ def LOCAL__print_line1_with_header(header: str): assert header != "" logging.info(C_LINE1 + " [" + header + "]") - def LOCAL__print_test_list(header: str, test_count: int, test_list: typing.List[str]): + def LOCAL__print_test_list( + header: str, test_count: int, test_list: typing.List[str] + ): assert type(header) == str # noqa: E721 assert type(test_count) == int # noqa: E721 assert type(test_list) == list # noqa: E721 pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy