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
Is there value in adding material to cover simple test parameterisation?
I imagine this could fit in after edge and corner cases, reuse the sinc2d example, and make use of the @pytest.mark.parametrize decorator (docs are at https://docs.pytest.org/en/latest/parametrize.html). Essentially this could be "something else useful that pytest does" and could be a task of refactoring the collection of edge and corner case tests.
As I see it there are two down sides of this. First, it would make the lesson longer, and that's not necessarily a good thing. Second, it would make use of decorators, and these would probably be new to many learners.
The text was updated successfully, but these errors were encountered:
Is there value in adding material to cover simple test parameterisation?
I imagine this could fit in after edge and corner cases, reuse the sinc2d example, and make use of the
@pytest.mark.parametrize
decorator (docs are at https://docs.pytest.org/en/latest/parametrize.html). Essentially this could be "something else useful that pytest does" and could be a task of refactoring the collection of edge and corner case tests.As I see it there are two down sides of this. First, it would make the lesson longer, and that's not necessarily a good thing. Second, it would make use of decorators, and these would probably be new to many learners.
The text was updated successfully, but these errors were encountered: