|
20 | 20 |
|
21 | 21 | C_ROOT_DIR__RELATIVE = ".." |
22 | 22 |
|
| 23 | +# ///////////////////////////////////////////////////////////////////////////// |
| 24 | + |
| 25 | +T_TUPLE__str_int = typing.Tuple[str, int] |
| 26 | + |
23 | 27 | # ///////////////////////////////////////////////////////////////////////////// |
24 | 28 | # T_PLUGGY_RESULT |
25 | 29 |
|
|
29 | 33 | T_PLUGGY_RESULT = pluggy.Result |
30 | 34 |
|
31 | 35 | # ///////////////////////////////////////////////////////////////////////////// |
32 | | -# TestConfigPropNames |
33 | | - |
34 | 36 |
|
35 | | -class TestConfigPropNames: |
36 | | - TEST_CFG__LOG_DIR = "TEST_CFG__LOG_DIR" |
| 37 | +g_error_msg_count_key = pytest.StashKey[int]() |
| 38 | +g_warning_msg_count_key = pytest.StashKey[int]() |
| 39 | +g_critical_msg_count_key = pytest.StashKey[int]() |
37 | 40 |
|
38 | 41 |
|
39 | 42 | # ///////////////////////////////////////////////////////////////////////////// |
| 43 | +# TestConfigPropNames |
| 44 | + |
| 45 | +class TestConfigPropNames: |
| 46 | + TEST_CFG__LOG_DIR = "TEST_CFG__LOG_DIR" |
40 | 47 |
|
41 | | -T_TUPLE__str_int = typing.Tuple[str, int] |
42 | 48 |
|
43 | 49 | # ///////////////////////////////////////////////////////////////////////////// |
44 | 50 | # TestStartupData__Helper |
45 | 51 |
|
46 | | - |
47 | 52 | class TestStartupData__Helper: |
48 | 53 | sm_StartTS = datetime.datetime.now() |
49 | 54 |
|
@@ -346,13 +351,6 @@ def helper__build_test_id(item: pytest.Function) -> str: |
346 | 351 |
|
347 | 352 | # ///////////////////////////////////////////////////////////////////////////// |
348 | 353 |
|
349 | | -g_error_msg_count_key = pytest.StashKey[int]() |
350 | | -g_warning_msg_count_key = pytest.StashKey[int]() |
351 | | -g_critical_msg_count_key = pytest.StashKey[int]() |
352 | | - |
353 | | -# ///////////////////////////////////////////////////////////////////////////// |
354 | | - |
355 | | - |
356 | 354 | def helper__makereport__setup( |
357 | 355 | item: pytest.Function, call: pytest.CallInfo, outcome: T_PLUGGY_RESULT |
358 | 356 | ): |
@@ -875,7 +873,9 @@ def LOCAL__print_line1_with_header(header: str): |
875 | 873 | assert header != "" |
876 | 874 | logging.info(C_LINE1 + " [" + header + "]") |
877 | 875 |
|
878 | | - def LOCAL__print_test_list(header: str, test_count: int, test_list: typing.List[str]): |
| 876 | + def LOCAL__print_test_list( |
| 877 | + header: str, test_count: int, test_list: typing.List[str] |
| 878 | + ): |
879 | 879 | assert type(header) == str # noqa: E721 |
880 | 880 | assert type(test_count) == int # noqa: E721 |
881 | 881 | assert type(test_list) == list # noqa: E721 |
|
0 commit comments