feat(test): 添加Celery和Redis集成测试脚本

添加两个测试脚本用于验证生产环境配置:
1. test_celery.py - 测试Celery任务执行和连接
2. test_redis_celery.py - 测试Redis连接和Celery集成

同时更新.gitignore以排除其他测试文件但保留这两个测试脚本
This commit is contained in:
2026-01-17 20:56:38 +08:00
parent 27a87436ce
commit 4200249398
3 changed files with 424 additions and 1 deletions

4
.gitignore vendored
View File

@@ -90,5 +90,7 @@ supervisor.conf
*.log
# 测试文件
test*.py*
test*.py
*test.py
!test_redis_celery.py
!test_celery.py