import pytest @pytest.fixture def valid_env(tmp_path): return { "SECRET_KEY": "x" * 48, "ALLOWED_HOSTS": "testserver", "DATA_DIR": str(tmp_path), }