DEV Community

Discussion on: Alternate to Nose for Newbie Tester

 
grahamlyons profile image
Graham Lyons • Edited

I don't really like class based unit tests

See above for my reasoning on code organisation. I tend to write quite functional code too but I'll have a TestCase class with multiple test_* methods for testing the function.

I stand by my mistrust of pytest fixtures though - sorcery and black magic. (But I will go and take another look at them on your recommendation).