from collections.abc import Generator import pytest from fluksio.sdk import FLOWS @pytest.fixture(scope="session", autouse=True) def db() -> Generator[None, None, None]: """Declaring a flow touches no database.""" yield @pytest.fixture(autouse=True) def registry() -> Generator[None, None, None]: """The registry is module-level, so one test's flows are not another's.""" FLOWS.clear() yield FLOWS.clear()