MCPcopy Create free account
hub / github.com/apache/impala / pytest_configure

Function pytest_configure

tests/conftest.py:65–75  ·  view source on GitHub ↗

Hook startup of pytest. Sets up log format,per-test timeout, and ImpalaTestClusterProperties singleton.

(config)

Source from the content-addressed store, hash-verified

63
64
65def pytest_configure(config):
66 """ Hook startup of pytest. Sets up log format,per-test timeout,
67 and ImpalaTestClusterProperties singleton."""
68 configure_logging()
69 config.option.timeout = PYTEST_TIMEOUT_S
70
71 # Initialize the ImpalaTestClusterProperties singleton.
72 # Don't import at top level to avoid circular dependency between conftest and
73 # tests.common.environ, which uses command-line flags set up by conftest.
74 from tests.common.environ import ImpalaTestClusterProperties
75 ImpalaTestClusterProperties.get_instance(config)
76
77
78def configure_logging():

Callers

nothing calls this directly

Calls 2

get_instanceMethod · 0.80
configure_loggingFunction · 0.70

Tested by

no test coverage detected