TIL how to use namedtuple with pytest parameterized tests to make the parameters easier to read https://til.simonwillison.net/pytest/namedtuple-parameterized-tests
TIL how to use namedtuple with pytest parameterized tests to make the parameters easier to read https://til.simonwillison.net/pytest/namedtuple-parameterized-tests 3 comments
Ditto. I recently wrote one to utilize `pytest.param` and `kwargs` inside parametrize to make things more tractable. |
@simon I wonder if dataclasses could be used to help with type safety. (I don't see why not. 🤔)