Unit Testing with Python (Part 3) – More Mocking!

Before reading this post I’d recommend reading my previous ones available here and here. In the previous tutorial we used unittest.mock to mock out our test subject’s dependencies, this simplified our tests and allowed us to focus on one piece of functionality at a time. Unfortunately the approach detailed previously has a drawback! Let’s make […]

Unit Testing with Python (Part 1) – A Simple Test

This tutorial will be the first in a small series about writing unit tests in Python, the reason it’s being split is mostly because I am learning more about it as I write! The examples below are written to Python 2.7 though I will cover 3 in the future to highlight their differences. I will […]

Python JSON Tutorial

The JSON module is part of the Python standard library and provides an easy to use way of dealing with JSON data types. This tutorial servers as a basic introduction to this very useful module. Python to JSON table The first place to start is the Python to JSON table (defined in the documentation) which […]

2016 Year in Review

Another year has gone by and what a year! I don’t think 2016 will be missed by many people, a lot of well known celebrities have sadly passed on and a number of events have left people feeling concerned about what the future holds. I won’t even pretend to be able to comment accurately on […]

The Sound of Alexa

A fortnight ago I was lucky enough to attend the amazing HackSheffield and I can honestly say it was fantastic! Everyone had brilliant ideas and watching the presentations at the end was great fun, so much creativity! Some of the apps that were developed made use of Alexa and the Echo which Amazon brought for […]

AWS Lambda and DynamoDB

Introduction AWS Lambda allows you to write code without having to worry about provisioning and maintaining servers. You simply create an Lambda function, upload your code and it’s run whenever the relevant event is triggered. DynamoDB is a NoSql Database Amazon provide for easy integration with your Cloud solution. DynamoDB spreads data and traffic over […]