While running the full test, all the test passed except the 4 last TestUser, they all seem to fail when trying to delete the user. I configured the settings_local.py file with the three app id, rest key and master key as described in the documentation.
Here are the messages i get:
python -m unittest parse_rest.tests
Uploading source files
Finished uploading files
Not creating a release because no files have changed
................................EEEE
======================================================================
ERROR: testCanLogin (parse_rest.tests.TestUser)
----------------------------------------------------------------------
Traceback (most recent call last):
File "parse_rest/tests.py", line 462, in tearDown
self._destroy_user()
File "parse_rest/tests.py", line 441, in _destroy_user
user and user.delete()
File "parse_rest/user.py", line 27, in ret
return func(obj, *args, **kw)
File "parse_rest/user.py", line 76, in delete
return User.DELETE(self._absolute_url, extra_headers=session_header)
File "parse_rest/connection.py", line 142, in DELETE
return cls.execute(uri, 'DELETE', **kw)
File "parse_rest/connection.py", line 124, in execute
raise exc(e.read())
ResourceRequestBadRequest: {"code":206,"error":"Parse::UserCannotBeAlteredWithoutSessionError"}
======================================================================
ERROR: testCanSignUp (parse_rest.tests.TestUser)
----------------------------------------------------------------------
Traceback (most recent call last):
File "parse_rest/tests.py", line 459, in setUp
u.delete()
File "parse_rest/user.py", line 27, in ret
return func(obj, *args, **kw)
File "parse_rest/user.py", line 76, in delete
return User.DELETE(self._absolute_url, extra_headers=session_header)
File "parse_rest/connection.py", line 142, in DELETE
return cls.execute(uri, 'DELETE', **kw)
File "parse_rest/connection.py", line 124, in execute
raise exc(e.read())
ResourceRequestBadRequest: {"code":206,"error":"Parse::UserCannotBeAlteredWithoutSessionError"}
======================================================================
ERROR: testCanUpdate (parse_rest.tests.TestUser)
----------------------------------------------------------------------
Traceback (most recent call last):
File "parse_rest/tests.py", line 459, in setUp
u.delete()
File "parse_rest/user.py", line 27, in ret
return func(obj, *args, **kw)
File "parse_rest/user.py", line 76, in delete
return User.DELETE(self._absolute_url, extra_headers=session_header)
File "parse_rest/connection.py", line 142, in DELETE
return cls.execute(uri, 'DELETE', **kw)
File "parse_rest/connection.py", line 124, in execute
raise exc(e.read())
ResourceRequestBadRequest: {"code":206,"error":"Parse::UserCannotBeAlteredWithoutSessionError"}
======================================================================
ERROR: testUserAsQueryArg (parse_rest.tests.TestUser)
----------------------------------------------------------------------
Traceback (most recent call last):
File "parse_rest/tests.py", line 459, in setUp
u.delete()
File "parse_rest/user.py", line 27, in ret
return func(obj, *args, **kw)
File "parse_rest/user.py", line 76, in delete
return User.DELETE(self._absolute_url, extra_headers=session_header)
File "parse_rest/connection.py", line 142, in DELETE
return cls.execute(uri, 'DELETE', **kw)
File "parse_rest/connection.py", line 124, in execute
raise exc(e.read())
ResourceRequestBadRequest: {"code":206,"error":"Parse::UserCannotBeAlteredWithoutSessionError"}
----------------------------------------------------------------------
Ran 36 tests in 91.651s
FAILED (errors=4)
Hi,
While running the full test, all the test passed except the 4 last TestUser, they all seem to fail when trying to delete the user. I configured the settings_local.py file with the three app id, rest key and master key as described in the documentation.
Here are the messages i get: