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

Offen
#162 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
80/100
Issue-Typ
Feature
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
TypeScript
Sterne
0
Forks
4
Ø Merge
18 Std. 41 Min.
Gemergte PRs (30 T.)
48

Entwicklungsumgebung

In Codespaces öffnen

Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus DiffCI/core

Alle Issues in DiffCI/core

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.