BUG: Local pytest suite fails to collect due to deprecated imports and mock schemas

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

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

  • #308 @shubhumre777 による — マージされずにクローズ

評価

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

調査の方向性

Start with tests/test_weaviate.py and tests/test_supabase.py, then run pytest tests/ to confirm the collection failures. Update the deprecated model import and align the Supabase mock return values with the current backend queries. Done means all test items collect and the suite runs successfully; the issue author says they have already fixed this locally and are ready to submit a pull request.

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

説明

Is there an existing issue for this?
  • I have searched the existing issues
What happened?

📌 Issue Overview

The local pytest suite fails to collect and run tests due to deprecated model imports and outdated mock client schemas in the testing files. Specifically, WeaviateCodeChunk is deprecated, and the mock Supabase client configuration does not match the current backend schema.

🔍 Steps to Reproduce

  1. Clone the repository and set up the local environment.
  2. Open the terminal and navigate to the project root.
  3. Run the command pytest tests/ (or run with $env:PYTHONPATH=".;backend" on Windows).
  4. See the ImportError and collection errors across the test files.

🎯 Expected Behavior

The test suite should collect all items and execute successfully without any import or configuration errors.

🚨 Actual Behavior

13/13 test items fail to collect. The system throws import errors in tests/test_weaviate.py and schema structure errors in tests/test_supabase.py.

📷 Screenshot

N/A (This is a backend test configuration issue).

💡 Suggested Improvements

  • In tests/test_weaviate.py: Replace the deprecated WeaviateCodeChunk import with the active model classes (WeaviateRepository, WeaviatePullRequest, WeaviateUserProfile).
  • In tests/test_supabase.py: Update the mock Supabase client return values (e.g., client.table.return_value...) to properly align with the current backend queries.
    (Note: I have already resolved this locally and am ready to submit a Pull Request to fix it.)
Record
  • I agree to follow this project's Code of Conduct
  • I want to work on this issue
主要言語
Python
スター
103
フォーク
143
PR マージ指標
30日以内にマージされた PR はありません

環境構築

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

はじめの一歩

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

AOSSIE-Org/Devr.AI のほかの issue

AOSSIE-Org/Devr.AI の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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