BUG: Local pytest suite fails to collect due to deprecated imports and mock schemas
まだ誰も着手していません。
- #308 @shubhumre777 による — マージされずにクローズ
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 25/100
調査の方向性
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
- Clone the repository and set up the local environment.
- Open the terminal and navigate to the project root.
- Run the command
pytest tests/(or run with$env:PYTHONPATH=".;backend"on Windows). - See the
ImportErrorand 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 deprecatedWeaviateCodeChunkimport 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 ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
AOSSIE-Org/Devr.AI のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
AOSSIE-Org/Devr.AI#315 · コメント 1 件 ·
-
Bump Weaviate image to 1.39.13 (Go 1.26.10 / CVE-2026-111943)対応中かも @dudanogueira が 38 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
AOSSIE-Org/Devr.AI#309 · コメント 1 件 ·
-
DOCS UPDATE: Incorrect Flask command path in backend installation guide対応中かも @Ashwin-Pillai-22 が 321 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
AOSSIE-Org/Devr.AI#229 · コメント 3 件 ·
-
BUG:Devr.AI Agent loses user_profile for returning users and fails to persist conversation summaries & cumulative interaction counts対応中かも @shubhumre777 が 34 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
AOSSIE-Org/Devr.AI#311 · コメント 2 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
AOSSIE-Org/Devr.AI#305 ·
AOSSIE-Org/Devr.AI の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue
難易度 1/5 1〜3時間 初心者へのやさしさ 89/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
smk762/argus-atlas#97 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
xdslproject/xdsl#6842 ·
メンテナーはふだん 1 日以内に返信