Hi Pythonistas, let’s add some more challenges for October. Following our Python testing with pytest book review we let you write some tests with this awesome framework.
Articles on unittest
Python Testing With Pytest
By Bob Belderbos on 25 September 2017
Review of Brian Okken’s new pytest book.
Parsing Twitter Geo Data and Mocking API Calls by Example
By Bob Belderbos on 17 June 2017
“Is this Bob or Julian?!” … yeah tweeting from our shared @pybites Twitter account can be confusing! So I made a little script to parse the location of our tweets. Then I extended it to make it testable. I wrote a decorator to cache a couple of API outputs to be used with the unittest.mock patch decorator I learned about. A simple script turned into a good learning exercise.
Twitter digest 2017 week 18
By PyBites Team on 7 May 2017
Every weekend we share a curated list of 15 cool things (mostly Python) that we found / tweeted throughout the week.
How To Build a Simple API with Flask and Unit Test it
By Bob Belderbos on 3 March 2017
In this post I will create a simple API with Flask and test it with curl and unit testing its HTTP methods.