mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Fix stray prints seen inbetween tests (#88570)
This commit is contained in:
parent
bfa315be51
commit
356c316b39
@ -101,6 +101,9 @@ from .test_util.aiohttp import ( # noqa: E402, isort:skip
|
|||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
logging.basicConfig(level=logging.INFO)
|
||||||
|
logging.getLogger("sqlalchemy.engine").setLevel(logging.INFO)
|
||||||
|
|
||||||
asyncio.set_event_loop_policy(runner.HassEventLoopPolicy(False))
|
asyncio.set_event_loop_policy(runner.HassEventLoopPolicy(False))
|
||||||
# Disable fixtures overriding our beautiful policy
|
# Disable fixtures overriding our beautiful policy
|
||||||
asyncio.set_event_loop_policy = lambda policy: None
|
asyncio.set_event_loop_policy = lambda policy: None
|
||||||
@ -131,10 +134,7 @@ def pytest_configure(config: pytest.Config) -> None:
|
|||||||
"markers", "no_fail_on_log_exception: mark test to not fail on logged exception"
|
"markers", "no_fail_on_log_exception: mark test to not fail on logged exception"
|
||||||
)
|
)
|
||||||
if config.getoption("verbose") > 0:
|
if config.getoption("verbose") > 0:
|
||||||
logging.basicConfig(level=logging.DEBUG)
|
logging.getLogger().setLevel(logging.DEBUG)
|
||||||
else:
|
|
||||||
logging.basicConfig(level=logging.INFO)
|
|
||||||
logging.getLogger("sqlalchemy.engine").setLevel(logging.INFO)
|
|
||||||
|
|
||||||
|
|
||||||
def pytest_runtest_setup() -> None:
|
def pytest_runtest_setup() -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user