In my previous blog
covered writing exception-based assertions and fixtures. Today I'm
going to close things out by demonstrating how to change the behavior of
pytest and how to integrate it with Django and
When pytest is called, either via ...
When using pytest, you can assert whether or not an exception occurred ...
When I first encountered Holger Krekel's pytest this summer on Jeff Knupp's blog I felt like I had been living under a rock for years. I've been using Python's unittest framework since 2006 and nose to find tests since 2008, but here was another test framework ...
Content Copyright © 2012-2018 Daniel Greenfeld. Proudly harnessed by Mountain, powered by Flask, and rendered by Frozen Flask, all of which take great advantage of Python.