Skip to content

Update test examples in examples/pure-hatch and examples/pure-setuptools #802

Open

Description

@InessaPawson

Follow up on the discussion in #659 by updating the test examples used in examples/pure-hatch and examples/pure-setuptools.

Activity

  1. qorud02 commented on Nov 12, 2026

    @qorud02

    Hi @InessaPawson, I would like to take a focused pass at #802: parameterize the positive/negative/zero conversion cases in both examples, retain the negative Celsius result for 0°F, and keep the Hatch-only averaging/workflow examples intact. I will check references to these shared examples and run each package separately before opening a small PR. I will leave package layout and the fixture-based annual-mean example outside this change.

  2. lwasser commented on Dec 1, 2026

    @lwasser
    Member

    Hey @InessaPawson, noticing an open pr that adds pytest parametrize to our tests. I'm curious whether we discussed this or want to keep them simple for new users who might not understand that syntax (yet). I'm only asking because I see @qorud02 opened a pr but I'm not sure it's one we want to merge or not.

  3. lwasser commented on Dec 1, 2026

    @lwasser
    Member

    Hey @qorud02, how did you find us here? I left a comment above. Since our guide is for learners, I'm not sure we want to add more complex test syntax to it. Parametrize is super helpful, but it's not something a beginner would dig into right away. @InessaPawson, if I'm wrong and we are using parametrize, please correct me!! I am just checking in!

  4. InessaPawson commented on Dec 1, 2026

    @InessaPawson
    ContributorAuthor

    Hey @InessaPawson, noticing an open pr that adds pytest parametrize to our tests. I'm curious whether we discussed this or want to keep them simple for new users who might not understand that syntax (yet).

    @lwasser No, we never decided to use parametrize. For context, I opened this issue as a follow-up to the review of #659, where @sneakers-the-rat suggested a parametrized version of the temperature tests as a "take or leave" idea, noting they weren't sure about the audience for the example. I filed #802 so the discussion wouldn't block that PR, but I left the scope open.

    I agree with you that the examples should stay simple. One explicit test per case is easier to read for someone writing their first tests, and that's who the guide is for. If we want to cover parametrize at some point, I think it belongs in the tests section as a short "next step" with an explanation, not in the example packages.

    My suggestion is that we don't merge #844 as is. @qorud02, thank you for the work on it, and sorry for the unclear issue description. I'll update it with a narrower scope once we agree on what exactly should change in these test examples.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions