Show that declared `inputs` work for pytest, and document it

Abierto
#162 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
80/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
javascript, python, typescript

Línea de trabajo

Read the “Declare inputs the graph can't see” section in docs/using-diffci.md and the Go example at tests/repo/go-runtime-inputs.test.ts. Add a small pytest fixture under tests/repo/ using a data file in tests/data/, then run npm test and check whether changing the data selects the test with reason DECLARED_INPUT. Add the Python documentation example; if pytest inputs fail, follow the issue’s specified skipped-test and bug-report outcome.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

documentation good first issue

The "Declare inputs the graph can't see" section only has JavaScript examples. Declared inputs are tested for Go (tests/repo/go-runtime-inputs.test.ts) but not for Python. Python tests often load data by name, as in open("tests/data/prices.csv"), which the import graph can't see.

Done when:

  • tests/repo/ has a test with a small pytest fixture: a data file under tests/data/, a test that reads it, and an inputs entry mapping one to the other. Changing the data file selects that test with reason DECLARED_INPUT.
  • The docs section has a short Python example next to the JavaScript ones.
  • If the test shows declared inputs don't work for pytest, the PR contains only the failing test, marked it.todo or skipped, and a bug issue with the details. That's a useful result too.

New to DiffCI? See CONTRIBUTING.md: add a synthetic fixture, run npm test, and sign off commits with git commit -s. Comment here to claim the issue.

Lenguaje dominante
TypeScript
Estrellas
0
Forks
4
Merge medio
18 h 41 min
PR fusionados (30 d)
48

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de DiffCI/core

Todos los issues de DiffCI/core

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.