CAS unittest suite fails before any test runs

オープン 初心者向け
#485 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 8 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
76/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
flask, python
領域
backend, testing

調査の方向性

tests/base_test.py の9行目から読み、初期化された 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分
マージ済み PR(30日)
5

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

BCStudentSoftwareDevTeam/cas のほかの issue

BCStudentSoftwareDevTeam/cas の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。