SHA256
fix(测试): 改进用户创建测试并添加凭据导出验证
- 在测试中增加对凭据导出的验证 - 使用更安全的随机密码生成 - 添加对创建失败情况的测试覆盖 - 更新文档中的测试命令以包含临时目录参数 - 将临时测试目录添加到.gitignore
This commit is contained in:
@@ -103,8 +103,8 @@ uv run tjhlp repos create-homework --org tjhlp-2025f --number 1
|
||||
```bash
|
||||
cd scripts
|
||||
uv sync --extra dev
|
||||
uv run pytest tests/ -v # 运行全部测试
|
||||
uv run pytest tests/ --cov=tjhlp --cov-report=term-missing # 带覆盖率
|
||||
uv run pytest tests/ -v --basetemp .pytest_tmp # 运行全部测试
|
||||
uv run pytest tests/ --cov=tjhlp --cov-report=term-missing --basetemp .pytest_tmp # 带覆盖率
|
||||
```
|
||||
|
||||
当前测试套件包含 99 个测试用例, 覆盖:
|
||||
|
||||
Reference in New Issue
Block a user