数据库操作
This commit is contained in:
@@ -433,7 +433,9 @@ class FileHandler:
|
||||
# ---------------------------- 测试用例 ----------------------------
|
||||
if __name__ == "__main__":
|
||||
# 初始化处理器(自动处理跨平台路径)
|
||||
handler = FileHandler("test_data")
|
||||
project_root = next(p for p in Path(__file__).resolve().parents if
|
||||
(p / '.git').exists() or (p / 'pyproject.toml').exists() or (p / 'requirements.txt').exists())
|
||||
handler = FileHandler(project_root / "test")
|
||||
|
||||
# 测试路径标准化
|
||||
test_paths = [
|
||||
|
||||
Reference in New Issue
Block a user