Ah, this shows how many side-effects those decorators have! I think the entire app init should live in setup and with_setup should be used to inject the environment we need. This is what i mean https://nose.readthedocs.org/en/latest/writing_tests.html#test-functions