2 ms·
I see the point of pytest and the greatness of it. I like pytest but I like minimalism more. I dont find it a good showcase here: couldn't you have kept only th
by makapuf 6y ago
I see the point of pytest and the greatness of it. I like pytest but I like minimalism more. I dont find it a good showcase here: couldn't you have kept only the asserts and just run the script?
- jaimebuelta 6y agoIn that case, only the first fail will be reported and exit. Which is fair enough in some cases, but may be confusing for long sequences of tests. (There’s the option to get that behaviour in pytest as well with a parameter. Also, pytest may run the tests in parallel, which may speed up the results)
- makapuf 6y agoWell sure but a simple function if a!=b print(f"{a} is not {b}") could do the job fine.