Is there a way of running the same python test with multiple inputs? Ideally using unittest, but open to other libraries if not.
I'd like to be able to write something along the lines of
@inputs(1,2,3) @inputs(4,5,9) def test_my_test(self, a, b, c): self.assertEqual(a + b, c)
unittestitself doesn't provide something like this, butpytestdoes, and I've used theddtmodule in the past withunittest.ddtprovides exactly what I'm looking for. If you add that as an answer I'll accept it.