openspending/openspending — pull request #780 by nickstenning (2014-02-28 08:57:29+00:00)
Title: Allow faking out the Inflation library

The economics.inflation.Inflation() constructor makes a request to a remote URL, which means that it can't be used offline. Add an "openspending.fake_inflation" config variable which allows the use of a fake (unit) Inflation class for debugging and development purposes.