milesrichardson / ParsePy

A relatively up-to-date fork of ParsePy, the Python wrapper for the Parse.com API. Originally maintained by @dgrtwo
MIT License
516 stars 184 forks source link

config/global.json #83

Closed michaelPhelps closed 9 years ago

michaelPhelps commented 9 years ago

After installing the command line tools and setting up the cloud code as dictated here : https://www.parse.com/docs/cloud_code_guide

I keep getting this error:

E..................................

ERROR: test_simple_functions (main.TestFunction)

test hello world and averageStars functions

Traceback (most recent call last): File "/Library/Python/2.7/site-packages/parse_rest/tests.py", line 394, in setUp with open("config/global.json", "w") as outf: IOError: [Errno 2] No such file or directory: 'config/global.json'


Ran 35 tests in 37.125s

FAILED (errors=1)

The directory I am trying to run "python -m 'parse_rest.tests' looks like this: cloud config public settings_local.py settings_local.pyc

mclean25 commented 9 years ago

I keep getting the same issue

bradddd commented 9 years ago

Go to the directory where cloudcode is installed, or look in the test.py file to see the directory that it changes to right before the open() call fails. You're probably missing the config directory. Just create a directory there named "config" to get the test to work.

dankrause commented 9 years ago

Fixed by dd38bb027de56d4f083a71226971dbfb4e511efa