Add unit tests for models and services
- Implemented unit tests for Object model including folder and file creation, properties, and path retrieval. - Added unit tests for Setting model covering creation, unique constraints, and type enumeration. - Created unit tests for User model focusing on user creation, uniqueness, and group relationships. - Developed unit tests for Login service to validate login functionality, including 2FA and token generation. - Added utility tests for JWT creation and verification, ensuring token integrity and expiration handling. - Implemented password utility tests for password generation, hashing, and TOTP verification.
This commit is contained in:
64
.gitignore
vendored
64
.gitignore
vendored
@@ -1,16 +1,64 @@
|
||||
# Python
|
||||
__pycache__/
|
||||
.pytest_cache/
|
||||
.venv/
|
||||
.env/
|
||||
.vscode/
|
||||
.VSCodeCounter/
|
||||
node_modules/
|
||||
|
||||
*.py[cod]
|
||||
*.pyo
|
||||
*.pyd
|
||||
*.so
|
||||
*.egg
|
||||
*.egg-info/
|
||||
dist/
|
||||
build/
|
||||
eggs/
|
||||
.eggs/
|
||||
|
||||
# 虚拟环境
|
||||
.venv/
|
||||
.env/
|
||||
venv/
|
||||
env/
|
||||
|
||||
# 测试和覆盖率
|
||||
.pytest_cache/
|
||||
.coverage
|
||||
.coverage.*
|
||||
htmlcov/
|
||||
.tox/
|
||||
.nox/
|
||||
coverage.xml
|
||||
*.cover
|
||||
|
||||
# IDE
|
||||
.vscode/
|
||||
.idea/
|
||||
*.code-workspace
|
||||
.VSCodeCounter/
|
||||
*.swp
|
||||
*.swo
|
||||
*~
|
||||
|
||||
# 数据库
|
||||
*.db
|
||||
.env
|
||||
*.sqlite
|
||||
*.sqlite3
|
||||
|
||||
# 环境变量
|
||||
.env
|
||||
.env.local
|
||||
.env.*.local
|
||||
|
||||
# 日志
|
||||
*.log
|
||||
logs/
|
||||
|
||||
# 系统文件
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
nul
|
||||
|
||||
# Node (如果有前端)
|
||||
node_modules/
|
||||
|
||||
# 其他
|
||||
*.bak
|
||||
*.tmp
|
||||
*.temp
|
||||
|
||||
Reference in New Issue
Block a user