3 ms·
This is so cool, I haven't seen this ... Python I think? The doctest I think it was called. But at compile time without static analysis tools, this is so cool.
by keyle 3y ago
This is so cool, I haven't seen this ... Python I think? The doctest I think it was called.
But at compile time without static analysis tools, this is so cool.
- formerly_proven 3y ago> This is so cool, I haven't seen this ... Python I think? The doctest I think it was called. @pytest.mark.parametrize https://docs.pytest.org/en/7.2.x/how-to/parametrize.html#pytest-mark-parametrize-parametrizing-test-functions https://docs.pytest.org/en/7.2.x/how-to/parametrize.html#pyt...
- lozenge 3y agoYou can use subTest in Python, and there are packages which provide parameterize for unittest as well. https://docs.python.org/3/library/unittest.html#subtests https://docs.python.org/3/library/unittest.html#subtests