Skip to content

Instantly share code, notes, and snippets.

View andypike's full-sized avatar

Andy Pike andypike

View GitHub Profile
# Real implimentations:
# =====================
#
# This isn't really testing anything but the point is, rather than
# reading the module to use from config and fixing the module for
# all tests here we inject the module in the function call and supply
# a default for normal operation. This is akin to dependency injection
# in OO. Not sure if this is a good idea but seems more flexible as
# different tests can pass in a different fake (if needed).