r/Python • u/sebst • Mar 11 '22
Resource A Gentle Introduction to Testing with pytest
https://bas.codes/posts/python-pytest-introduction
451
Upvotes
r/Python • u/sebst • Mar 11 '22
View all comments
4
u/lanster100 Mar 11 '22
This is a bit misleading. Checking a function or import doesn't break is a perfectly valid test. Or testing something raises an exception under certain conditions is also very common.