"""Pytest session setup. Redirect the Festival 4D data directory to a throwaway temp dir for the whole test session, so tests never touch the repo's real ``data/`` (which may hold the demo fixture). Set before any ``festival4d.config`` import so the paths resolve to the temp dir. """ import os import tempfile os.environ.setdefault( "FESTIVAL4D_DATA_DIR", tempfile.mkdtemp(prefix="festival4d-test-") )