瀏覽代碼

[desktop] Clear secret_key_script if live cluster has it enabled

Erick Tryzelaar 10 年之前
父節點
當前提交
d9aebab
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      desktop/core/src/desktop/tests.py

+ 1 - 0
desktop/core/src/desktop/tests.py

@@ -569,6 +569,7 @@ def test_validate_path():
 def test_config_check():
   reset = (
     desktop.conf.SECRET_KEY.set_for_testing(''),
+    desktop.conf.SECRET_KEY_SCRIPT.set_for_testing(present=False),
     desktop.conf.SSL_CERTIFICATE.set_for_testing('foobar'),
     desktop.conf.SSL_PRIVATE_KEY.set_for_testing(''),
     desktop.conf.DEFAULT_SITE_ENCODING.set_for_testing('klingon')