from collections.abc import Generator import pytest @pytest.fixture(scope="session", autouse=True) def db() -> Generator[None, None, None]: """The engine holds no database state, so these tests need no database.""" yield