PyContracts *probably* still enabled when running celery workers and management commands
It might be helpful to enable environment level overrides to turn contracts on or off, so that we can easily turn it on for tests (both django, running through manage.py, and nosetests).
Steps to Reproduce
Reason for Variance
User Impact Summary
That sounds like nice gravy to add.
Sure. Should you be able to specify it with some sort of flag, like --contracts?
I added contracts about 2 weeks ago, more or less. Again, only in Split.
I'd want to add the disable_all() call to manage.py so that it happens before any code using contracts gets imported (because that's the only way to completely eliminate the performance hit). I've also been thinking that pushing something upstream that checks for environment variables when contracts is imported, so that it's easy to globally enable/disable them without making any code changes.
Also, for how long would have this been the case?
So should that be added to startup.py? hidden behind a feature flag?