You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Show that declared inputs work for pytest, and document it #162
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.
I'd like to take this one, claiming before I start.
Plan: a synthetic pytest fixture under tests/repo/ with tests/data/prices.csv, a test that reads it with open(...) (so the import graph can't see it), and an inputs entry mapping the two; assert the change selects that test with DECLARED_INPUT. Then a short Python example in the docs section next to the JavaScript ones. If the test turns out to show declared inputs don't work for pytest, I'll follow the issue's other branch: ship the failing test skipped plus a bug issue with the details.
Activity
tyza66 commentedon Nov 18, 2026
I'd like to take this one, claiming before I start.
Plan: a synthetic pytest fixture under
tests/repo/withtests/data/prices.csv, a test that reads it withopen(...)(so the import graph can't see it), and aninputsentry mapping the two; assert the change selects that test withDECLARED_INPUT. Then a short Python example in the docs section next to the JavaScript ones. If the test turns out to show declared inputs don't work for pytest, I'll follow the issue's other branch: ship the failing test skipped plus a bug issue with the details.test(python): show that declared inputs select pytest tests, and docu…