Hook startup of pytest. Sets up log format,per-test timeout, and ImpalaTestClusterProperties singleton.
(config)
| 63 | |
| 64 | |
| 65 | def 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 | |
| 78 | def configure_logging(): |
nothing calls this directly
no test coverage detected