"""Point the API's global SoulBridge at a throwaway DB so tests never touch the real ./data/soul.db. Runs before test modules import app.main.""" import os import tempfile os.environ["SOUL_DB"] = os.path.join(tempfile.mkdtemp(prefix="clanker-test-"), "soul.db")