spotify/luigi — pull request #49 by erikbern (2013-04-27 06:06:34+00:00)
Title: Sketch for how to make things unit testable (work in progress, just rfc)

By passing mock=True to luigi.build, it will swap out all Targets to mocked targets. This means it will run mapreduce jobs locally, etc.

Had to fix an unrelated issue in interface.py to get the unit tests to run. Up until now, the environment parameters were mutable, meaning they would not be reset between invocations.