mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 09:47:52 +00:00
14 lines
252 B
Python
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)
|