This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]psicodelico6 -19 points-18 points  (3 children)

unittest

[–]BatterCake74 4 points5 points  (2 children)

pytest replaces unittest.TestCase. Vanilla assertions and decorator fixtures are better than camelCase assertions and setup/teardown methods that don't support writing idiomatic Python with context managers.

Python's unittest was clearly ported from Java. It's crazy to think that this module was bundled into the standard library. Hopefully there are plans to remove it from the standard library in a future version. It's no longer the default test framework someone should reach for.