3 ms·
> unittest is an old horse and cart, while pytest is the batmobile. I really wish more was said than just this. Why is it that pytest is often preferred and un
by henrikeh 6y ago
> unittest is an old horse and cart, while pytest is the batmobile.
I really wish more was said than just this. Why is it that pytest is often preferred and unittest is considered a bad choice? What is the impact on the quality of the tests?
- andreareina 6y agoPytest: - lets you use regular assert statements, rather than assertEqual, assertTrue, etc. - does not impose the use of classes - the way it does fixtures just feels nicer to use than unittest Basically, it's more ergonomic and IME more flexible.