ToDoAgent / LLM /todogen_LLM /test_paths.py
Siyu Wang
updated to KK_Server
84ed1d1
raw
history blame contribute delete
443 Bytes
# 部署验证脚本
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()