I've been trying to add parametrized @pytest.mark.parametrize
tests to a class based unittest.
class SomethingTests(unittest.TestCase): @pytest.mark.parametrize(('one', 'two'), [ (1, 2), (2, 3)]) def test_default_values(self, one, two): assert one == (two + 1)
But the parametrized stuff didn't kick in:
TypeError: test_default_values() takes exactly 3 arguments (1 given)
I've switched to simple class based tests (without unittest). But I'd like to know if anyone tried it and it worked.