BUG: Local pytest suite fails to collect due to deprecated imports and mock schemas
Nadie ha tomado este issue todavía.
- #308 de @shubhumre777 — cerrado sin fusionar
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 25/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Python
- Estrellas
- 103
- Forks
- 143
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de AOSSIE-Org/Devr.AI
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 95/100
AOSSIE-Org/Devr.AI#315 · 1 comentario ·
-
Bump Weaviate image to 1.39.13 (Go 1.26.10 / CVE-2026-111943)Posiblemente ocupada @dudanogueira la tomó hace 38 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
AOSSIE-Org/Devr.AI#309 · 1 comentario ·
-
DOCS UPDATE: Incorrect Flask command path in backend installation guidePosiblemente ocupada @Ashwin-Pillai-22 la tomó hace 321 días. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
AOSSIE-Org/Devr.AI#229 · 3 comentarios ·
-
BUG:Devr.AI Agent loses user_profile for returning users and fails to persist conversation summaries & cumulative interaction countsPosiblemente ocupada @shubhumre777 la tomó hace 34 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
AOSSIE-Org/Devr.AI#311 · 2 comentarios ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
AOSSIE-Org/Devr.AI#305 ·
Todos los issues de AOSSIE-Org/Devr.AI
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
enhancement good first issue
Dificultad 1/5 1-3 horas Aptitud para principiantes 89/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
smk762/argus-atlas#97 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
xdslproject/xdsl#6842 ·
Los mantenedores suelen responder en 1 día