parametrization
parametrization copied to clipboard
Simpler PyTest Parametrization
Pretty useful package, but I'm wondering what is accomplished by having all these decorators that define the public API as class methods of `Parametrization` instead of regular functions. Wouldn't it...
My suggestion for how to implement #7 that I mentioned at the end of that issue. Adds a new `marks` parameter to `Parametrization.case()`, in analogy to [pytest's own `pytest.param(..., marks=...)`](https://docs.pytest.org/en/7.1.x/reference/reference.html)....
This is what I had in mind for #5. Thoughts?
In pytest's vanilla parametrization API, it's possible to mark individual cases with markers like `skip` or `xfail` using `pytest.param(..., marks=...)`, e.g. (adapted from the example in [the official docs](https://docs.pytest.org/en/latest/how-to/skipping.html#skip-xfail-with-parametrize)): ```python...
I have been looking for a cleaner way to write parameterized test for long, so thanks ! no issue, just a poke to say that this lib is helpful !...