hass-core/tests/components/logger/conftest.py
J. Nick Koston 8792d664e7
Add websocket endpoints to control integration logging ()
Co-authored-by: Erik Montnemery <erik@montnemery.com>
Co-authored-by: Erik <erik@montnemery.com>
2022-11-17 08:57:43 -06:00

12 lines
251 B
Python

"""Test fixtures for the Logger component."""
import logging
import pytest
@pytest.fixture(autouse=True)
def restore_logging_class():
"""Restore logging class."""
klass = logging.getLoggerClass()
yield
logging.setLoggerClass(klass)