1
0
mirror of https://github.com/home-assistant/core.git synced 2025-05-06 06:59:15 +00:00
core/tests/components/logger/conftest.py

14 lines
252 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)