Skip to content

Show that declared inputs work for pytest, and document it #162

Closed

Description

@adityankale190895

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.

Activity

  1. added
    documentation
    good first issue
    on Nov 17, 2026
  2. tyza66 commented on Nov 18, 2026

    @tyza66
    Contributor

    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.

  3. added a commit that references this issue on Nov 18, 2026
    e41c538
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions