Initial test coverage for new configuration system

This commit is contained in:
Anne Carlson
2015-02-27 16:32:56 -05:00
committed by Madison May
parent 6b9251f4f5
commit dc47fe5b0a
7 changed files with 192 additions and 112 deletions
+3 -1
View File
@@ -1,3 +1,5 @@
import os
api_root = os.getenv("INDICO_PRIVATE_CLOUD_URL") or "http://apiv1.indico.io/"
def get_api_root():
return os.environ.get("INDICO_PRIVATE_CLOUD_URL") or "http://apiv1.indico.io/"
api_root = get_api_root()