# 部署验证脚本 import pytest from config_loader import get_paths def test_directory_structure(): paths = get_paths() assert paths['base_dir'].name == 'todogen_LLM' assert (paths['base_dir'] / 'output').exists() assert (paths['base_dir'] / 'todogen_logging').exists() # 验证写入权限 test_file = paths['data_dir'] / 'test.txt' test_file.write_text('test') test_file.unlink()