I finally got around to trying pytest 2.4.
Actually, I tried 2.4.2, to be specific.
The first thing I wanted to try was the support for unittest fixtures.
As mentioned in pytest support for unittest style fixtures, they didn’t quite work in pytest 2.3.
Well, now fixtures work just like unittest, when run in pytest.
I started to add strikethrough marks in the pytest support for … post, but got bored.
I’ll have to just rewrite it sometime.
For now, suffice it to say that pytest now fully supports unittest fixtures. Yay!
Learn pytest fast!
- Get started using pytest today with the Hello, pytest! course.
- Or become the local pytest expert with The Complete pytest Course.
- Courses not your thing? Grab the book! Python Testing with pytest, 2nd edition.