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
Update test examples in examples/pure-hatch and examples/pure-setuptools #802
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.
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.
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!
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.
Activity
qorud02 commentedon Nov 12, 2026
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.
lwasser commentedon Dec 1, 2026
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.
lwasser commentedon Dec 1, 2026
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!
InessaPawson commentedon Dec 1, 2026
@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.