[Test restructure 4] Reclassify misplaced tests at the unit/integration boundary

オープン
#6,052 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
testing

調査の方向性

まず、名前が挙げられている5つのテストファイルと現在のディレクトリを確認します。特に、fixture の使用、モック、外部サービス、HTTP/TLS のセットアップ、pytest マーカーを確認してください。提案どおりに各ファイルを再分類または分割し、その後、どのテストも unit、universal、component、integration の各層にまたがっていないこと、また test_dbt_integration.py が unit CI 中に実行されなくなっていることを確認してください。

索引モデルが issue の本文から書いたものです。

説明

What

Handle edge-case files that are currently in the wrong tier.

Files to investigate and reclassify

File Current location Issue Proposed action
test_mcp_feature_server.py integration/ Fully mocked, no external services, no markers Move to unit/
test_rest_error_decorator.py unit/ Uses environment fixture with no markers Investigate: refactor to remove environment dep (preferred) or move to universal/
test_offline_server.py unit/ Partially uses environment Split: env-dependent tests → universal/, rest stays in unit/
test_auth_registry_server.py unit/permissions/auth/server/ Starts real HTTP server with TLS Move to integration/auth/ or component/
test_dbt_integration.py integration/dbt/ Missing @pytest.mark.integration — runs during unit CI Will be fixed structurally by living in integration/dbt/

Note

Each file may need individual judgment. The goal is zero tests that straddle tier boundaries after this PR.

主要言語
Python
スター
7.4k
フォーク
1.5k
平均マージ
2日 6時間
マージ済み PR(30日)
107

環境構築

はじめの一歩

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

feast-dev/feast のほかの issue

feast-dev/feast の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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