test: add unit test for health check and stats endpoint in API

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

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

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

評価

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

調査の方向性

eddy/api.py の /health と /stats のルートハンドラを読んで、それぞれが返す JSON キーを確認し、次に tests/test_online_store_and_api.py の既存のテストで TestClient のセットアップを確認してください。各エンドポイントについて 200 ステータスと期待されるキーを検証するテストを追加してください。新しいテストが pytest で通れば完了です。

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

説明

good first issue
🎯 Objective

Increase test coverage by adding explicit unit tests verifying that /health\ and /stats\ return the expected JSON structure and status 200.

📍 Where to look
  • \eddy/api.py\
  • \ ests/test_online_store_and_api.py\
🛠️ Suggested Steps
  1. Use \TestClient\ from \starlette.testclient\ / \ astapi.testclient.
  2. Add a test function asserting
    esponse.status_code == 200\ and keys in payload.
  3. Submit a PR targeting \main.

New contributors welcome! Comment below to be assigned.

主要言語
Python
スター
2
フォーク
4
平均マージ
6時間 43分
マージ済み PR(30日)
2

環境構築

はじめの一歩

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

midhunsomu/Feature_Store のほかの issue

midhunsomu/Feature_Store の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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