Commit dd38bb02 by brad

Added check for config directory in CloudCode directory - fix #83

parent 6c57fa86
...@@ -390,6 +390,8 @@ class TestFunction(unittest.TestCase): ...@@ -390,6 +390,8 @@ class TestFunction(unittest.TestCase):
cloud_function_dir = os.path.join(os.path.split(__file__)[0], 'cloudcode') cloud_function_dir = os.path.join(os.path.split(__file__)[0], 'cloudcode')
os.chdir(cloud_function_dir) os.chdir(cloud_function_dir)
if not os.path.exists("config"):
os.makedirs("config")
# write the config file # write the config file
with open("config/global.json", "w") as outf: with open("config/global.json", "w") as outf:
outf.write(GLOBAL_JSON_TEXT % (settings_local.APPLICATION_ID, outf.write(GLOBAL_JSON_TEXT % (settings_local.APPLICATION_ID,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment