A lot of my tests actually do a bunch of mini tests. The logic kinda looks something like:
tests = [("input", "output"), ("input2", "output2")]
for input, output in tests:
# do test stuff...
This works well for the most part. However, when one of the mini tests fails, it's tedious to fix because none of the mini tests after it get run.
How can I get the "mini tests" to behave like separate tests?
I'm using python3's built in unittest
module. I've tried using TestSuite
as described here but it doesn't appear to work.