starlette 1.6 deprecates httpx in TestClient, which every test uses
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 45/100
Línea de trabajo
Start by checking the dependency versions in requirements.txt and how api/server.py uses httpx for Solr, then trace the tests' use of fastapi.testclient.TestClient. Check which Starlette release removes the httpx path and whether httpx2 supports the Solr client. Decide whether to migrate both uses or pin httpx; done means the suite runs without the deprecation warning or remains on a deliberate pin.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Pinning fastapi~=0.141.1 in #294 brought in starlette 1.6.0, which emits on every test run:
StarletteDeprecationWarning: Using `httpx` with `starlette.testclient` is deprecated;
install `httpx2` instead.
The whole test suite goes through fastapi.testclient.TestClient, so this is one warning today and
a broken suite whenever starlette drops the httpx path. requirements.txt lists httpx
unpinned — the API itself uses it to talk to Solr, so a move to httpx2 is not only a test-side
change.
Worth deciding deliberately rather than discovering at the next bump:
- Which starlette release actually removes the
httpxsupport, and doeshttpx2reach the same
Solr client code we use inapi/server.py? - Whether to migrate, or pin
httpxand take the warning until then.
No behaviour is wrong today; the suite passes.
- Lenguaje dominante
- Python
- Estrellas
- 5
- Forks
- 4
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin 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 NCATSTranslator/NameResolution
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 43/100
-
Dificultad 3/5 1-2 días Aptitud para principiantes 66/100
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
Todos los issues de NCATSTranslator/NameResolution
Issues similares
-
cognition facet:consolidation memory ready size:S
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
proposal
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
j3ko/agent-plugins#29 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
-
area:cli area:security bug priority:medium
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
rtk-ai/rtk#5127 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 74/100
Gathin23/cleanyourtv#4026 ·
Los mantenedores suelen responder en 1 día