test_types_each_field_as_typescript_derives_it fails when the temp directory's path contains "scratch"
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 1/5
- Tiempo estimado
- Menos de una hora
- Aptitud para principiantes
- 88/100
Línea de trabajo
Lee tests/unit/test_stubs.py::test_types_each_field_as_typescript_derives_it e inspecciona sus aserciones sobre el stub .pyi generado. Cambia las comprobaciones de scratch, movie_count y note: para que apunten a líneas de campos, en lugar de buscar esas palabras en cualquier parte del stub. El trabajo estará terminado cuando la prueba pase con TMPDIR establecido en una ruta que contenga «scratch» y siga comprobando que se omiten los campos transitorios.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What happens. tests/unit/test_stubs.py::test_types_each_field_as_typescript_derives_it asserts "scratch" not in stub, to check that the transient field scratch gets no ref in the generated .pyi. But the whole stub text is searched, and it also holds the path it was generated under. When pytest's temp directory is under a path containing "scratch" (e.g. TMPDIR=/tmp/…/scratchpad), the test fails, though the stub is right.
Seen while gating the v0.6.16 spec sync (#207): it failed with TMPDIR set to a scratchpad directory, and passed with the default temp dir.
Fix. Assert on the field line, not the word: e.g. " scratch:" not in stub, as the other assertions in that test check " released: …" lines. The same goes for movie_count and note:.
A test-only edge case, so "Next release + 2".
- Lenguaje dominante
- Python
- Estrellas
- 1
- Forks
- 0
- Merge medio
- 1 h 19 min
- PR fusionados (30 d)
- 122
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
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 liberation-data/drivine-python
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
liberation-data/drivine-python#252 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
liberation-data/drivine-python#250 ·
Los mantenedores suelen responder en 1 día
-
CI: three Oracle-only tests in test_cypher_compiled.py never run, as -k oracle doesn't select themAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
liberation-data/drivine-python#178 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 58/100
liberation-data/drivine-python#243 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
liberation-data/drivine-python#241 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de liberation-data/drivine-python
Issues similares
-
ready-for-agent tooling
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
KRoperUK/smeg-plus-patches#249 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
monzta1/ToneCommand#293 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
oracle/graalvm-reachability-metadata#11318 ·
Los mantenedores suelen responder en 1 día
-
area: parser bug difficulty: easy
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
hayagrivai-labs/phantom#150 ·
Los mantenedores suelen responder en 1 día
-
test: cover markdown.py summary items in numeric difference table and fallback number escapingAbiertodifficulty: easy good first issue help wanted mentor available testing
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
hayagrivai-labs/sciproof#179 ·
Los mantenedores suelen responder en 1 día