CAS unittest suite fails before any test runs

未关闭 适合新手
#485 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 8 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
76/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
flask, python
领域
backend, testing

调研方向

从第 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

  1. Open a shell in the CAS development container at the repo root.
  2. 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

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

  • 没有 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

BCStudentSoftwareDevTeam/cas 的其他 Issue

查看 BCStudentSoftwareDevTeam/cas 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。