From 4dc803055522c8ce208aa5c3913c5c1574eaa3f1 Mon Sep 17 00:00:00 2001 From: Paul Mison Date: Fri, 9 Jun 2017 12:33:02 -0700 Subject: [PATCH] Set TEST_MODE true for dev envs Per @rtshadow's comment on #72, enable TEST_MODE when in dev_appserver to avoid an otherwise confusing and fatal error later. --- python/src/pipeline/util.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/src/pipeline/util.py b/python/src/pipeline/util.py index e253158b..4c028272 100755 --- a/python/src/pipeline/util.py +++ b/python/src/pipeline/util.py @@ -50,6 +50,8 @@ def _get_task_target(): # Break circular dependency. # pylint: disable=g-import-not-at-top import pipeline + if os.environ['SERVER_SOFTWARE'].startswith('Development'): + pipeline._TEST_MODE = True if pipeline._TEST_MODE: return None