[TIP] How to detect if you are running in "test mode"
tim at timhatch.com
Wed Aug 4 15:13:07 PDT 2010
> I'm thinking of something like
> PATH_TO_SCRIPTS = '/this/value/will/never/be'
> if <running in testing>:
> PATH_TO_SCRIPTS = '../some_checkout'
> PATH_TO_SCRIPTS = '/var/lib/...../'
In my personal projects, I've generally done something like:
pass # running in development
pass # running on someone else's machine, with prereqs installed
More information about the testing-in-python