CAS unittest suite fails before any test runs
维护者通常 8 天内回复
还没有人认领这个 Issue。
评估
调研方向
从第 9 行开始阅读 tests/base_test.py,追踪已初始化的 Flask 应用在哪里创建和导入。从开发容器根目录运行 python -m unittest discover -s tests -p '*_test.py',以复现设置错误。完成标准是测试发现过程到达每个测试的主体,并且主页冒烟测试能够运行 Flask 应用。
由索引模型根据 Issue 内容生成。
描述
Description
The development-container test suite errors in shared setup when it tries to construct the Flask test client. This blocks even the home-page smoke test.
Steps to Reproduce
- Open a shell in the CAS development container at the repo root.
- Run
python -m unittest discover -s tests -p '*_test.py'.
Expected Behavior
The test client is created and the runner reaches each test body.
Actual Behavior
All three tests error at tests/base_test.py:9 with AttributeError: module 'app.allImports' has no attribute 'app'. Reproduced on 7697416. This occurs in the test runner.
Acceptance Criteria
- The shared setup imports the initialized Flask app and creates a test client.
- Test discovery reaches the test bodies, and the home-page smoke test exercises the running Flask application.
- 主要语言
- JavaScript
- 星标
- 0
- 派生
- 4
- 平均合并
- 6 天 6 分钟
- 30 天内合并 PR
- 5
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
BCStudentSoftwareDevTeam/cas 的其他 Issue
-
难度 1/5 1-3 小时 新手友好度 82/100
BCStudentSoftwareDevTeam/cas#491 ·
维护者通常 8 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
BCStudentSoftwareDevTeam/cas#488 ·
维护者通常 8 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
BCStudentSoftwareDevTeam/cas#487 ·
维护者通常 8 天内回复
-
难度 1/5 1-3 小时 新手友好度 85/100
BCStudentSoftwareDevTeam/cas#486 ·
维护者通常 8 天内回复
-
Special topics rows on the Courses page have misaligned columns可能已有人在做 @zapataa0 于 6 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
BCStudentSoftwareDevTeam/cas#481 · 已指派 1 人 ·
维护者通常 8 天内回复
查看 BCStudentSoftwareDevTeam/cas 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
yetone/alma-releases#782 ·
-
难度 2/5 1-3 小时 新手友好度 65/100
Pomax/markdown-editor#193 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
cboard-org/cboard#2449 ·
维护者通常 1 天内回复
-
enhancement good first issue help wanted
难度 2/5 1-3 小时 新手友好度 88/100
BinaryBaconLabs/todo-app#50 ·
维护者通常 1 天内回复
-
bug server testing
难度 2/5 1-3 小时 新手友好度 78/100
blamechris/chroxy#9435 ·
维护者通常 1 天内回复