import pytest import structlog @pytest.fixture() def reset_structlog(): yield structlog.reset_defaults()