pytest: assert Is Enough, Forget self.assertEqual
Originally published at recca0120.github.io
After switching from unittest to pytest, the thing I noticed most wasn't some killer feature — it was not having to remember all the assertXxx methods.
Just write assert result == expected. pytest knows how...
recca0120.hashnode.dev4 min read