import pytest from docslib.registry import registry @pytest.fixture(autouse=True) def clean_registry(): registry.clear() yield registry.clear()