Craig Labenz

Software Developer

  • Home

    About

    Archive

    Contact Me

My Projects

Grapevine - django email

Okapi - python game framework

Dominion Kingdoms - deck-building site

War of Kings Resource Manager - a way to speed up my favorite board game

This site - simple django-powered blog

Elsewhere

Hello! I'm Craig, and I'm a Michigan-based software developer for Zapier.com. In my free time I like to over-engineer email solutions for django, under-engineer Kivy tools, and play lots and lots of ultimate frisbee.

  • Mocking things in Python (and specifically, in Django)

    SATURDAY APRIL 5 2014 testing django

    Correctly mocking external entities in your unit tests is a bit tricky syntactically, and I have to look up the exact incantations to type every single time they're needed. Thus, I'll make a quick sales pitch about mocking, quickly explain it to the best of my current understanding, and end with a sequence of tricks to be updated as I learn more. In essence, it's my own personal cheat sheet, stored in an accessible location I'm unlikely to misplace.

    READ MORE