Repository navigation
Convert tests to pytest - #28
Conversation
|
Thanks for your modernization efforts. Just as a side question: Why |
|
From what I know, there is no built-in equivalent to import pytest
@pytest.mark.parametrize("x, y, expected", [
(1, 2, 3),
(10, 5, 15),
(-1, 1, 0),
])
def test_add(x, y, expected):
assert x + y == expectedI think you can achieve something similar with For me, that is the best reason to use pytest! :) I'm sure there are a few more reasons, but in almost every python project I worked on I used pytest, so it's the tool I know best, that's why I suggested it 😅 |
No description provided.