Skip to content

conftest is updated [formatting] #281

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@

C_ROOT_DIR__RELATIVE = ".."

# /////////////////////////////////////////////////////////////////////////////

T_TUPLE__str_int = typing.Tuple[str, int]

# /////////////////////////////////////////////////////////////////////////////
# T_PLUGGY_RESULT

Expand All @@ -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()

Expand Down Expand Up @@ -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
):
Expand Down Expand Up @@ -875,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
Expand Down