Code Challenge 32 - Test a Simple Django App With Selenium - Review

Posted by PyBites on Mon 21 August 2017 in Challenges • Tagged with codechallenges, Django, 100DaysOfDjango, Selenium, Testing • 1 min read

In this article we review last week's Test a Simple Django App With Selenium code challenge.


Continue reading

Code Challenge 32 - Test a Simple Django App With Selenium

Posted by PyBites on Tue 15 August 2017 in Challenge • Tagged with codechallenges, Django, 100DaysOfDjango, Selenium, Testing • 3 min read

Hi Pythonistas, a new week, a new 'bite' of Python goodness. As anticipated this week we dedicate a challenge to Selenium testing. We think this is a cool skill to add to your web dev + testing repertoire.


Continue reading

Code Challenge 30 - The Art of Refactoring: Improve Your Code - Review

Posted by PyBites on Mon 07 August 2017 in Challenges • Tagged with codechallenges, refactoring, code review, testing, bestpractices, cleancode, bettercodehub, Sig, Flask, authentication, my first script • 2 min read

In this article we review last week's The Art of Refactoring: Improve Your Code code challenge. We're excited to have done 30 challenges so far and it feels like we only got started. Prepare for more to come!


Continue reading

Code Challenge 30 - The Art of Refactoring: Improve Your Code

Posted by PyBites on Tue 01 August 2017 in Challenges • Tagged with codechallenges, refactoring, code review, testing, packaging, bestpractices, pythonic, pep8, cleancode • 2 min read

Hi Pythonistas, a new week, a new 'bite' of Python coding. Wow challenge 30 already! This week we let you hone your refactoring skills. Learn, code, PR submit (don't be shy) and above all have fun!


Continue reading

Parsing Twitter Geo Data and Mocking API Calls by Example

Posted by Bob on Sat 17 June 2017 in Learning • Tagged with twitter, API, mock, geo, data, unittest, pickle, tweepy, testing, 100days • 2 min read

"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.


Continue reading

Twitter digest 2017 week 09

Posted by PyBites on Sat 04 March 2017 in Digest • Tagged with twitter, news, podcasts, contextmanagers, 3.6, pypi, training, tuples, pydata, testing, zen, pyfun • 2 min read

On Saturdays we will share a curated list of 15 cool things (mostly Python) we found / tweeted during the week.


Continue reading

How To Build a Simple API with Flask and Unit Test it

Posted by Bob on Fri 03 March 2017 in Flask • Tagged with APIs, Flask, REST, curl, testing, unittest, inventory • 3 min read

In this post I will create a simple API with Flask and test it with curl and unit testing its HTTP methods.


Continue reading