In this article we review last week's Writing Tests With Pytest code challenge.
Julian and myself both wrote some tests with pytest for this challenge:
pytest is a great tool and writing good tests is a fundamental skill. Also writing code that needs to be tested changes your design for the better.
Given the amount on activity on PyBites we only touched the surface though. Luckily Brian Okken's great book saved and will save us a lot of time learning the ins and outs of pytest. Julian will also do a quick beginner guide ...
Keep Calm and Code in Python!
-- Bob and Julian
Do you want to get 250+ concise and applicable Python tips in an ebook that will cost you less than 10 bucks (future updates included), check it out here.
"The discussions are succinct yet thorough enough to give you a solid grasp of the particular problem. I just wish I would have had this book when I started learning Python." - Daniel H
"Bob and Julian are the masters at aggregating these small snippets of code that can really make certain aspects of coding easier." - Jesse B
"This is now my favourite first Python go-to reference." - Anthony L
"Do you ever go on one of those cooking websites for a recipe and have to scroll for what feels like an eternity to get to the ingredients and the 4 steps the recipe actually takes? This is the opposite of that." - Sergio S