当前位置: 首页 > 工具软件 > leancloud-sdk > 使用案例 >

python sdk invalid_SDK现在不可用是吗 · Issue #10 · leancloud/python-sdk · GitHub

柯凯旋
2023-12-01

python setup.py test

running test

running egg_info

writing requirements to leancloud_sdk.egg-info/requires.txt

writing leancloud_sdk.egg-info/PKG-INFO

writing top-level names to leancloud_sdk.egg-info/top_level.txt

writing dependency_links to leancloud_sdk.egg-info/dependency_links.txt

reading manifest file 'leancloud_sdk.egg-info/SOURCES.txt'

writing manifest file 'leancloud_sdk.egg-info/SOURCES.txt'

running build_ext

tests.test_avobject.test_extend ... ERROR

tests.test_avobject.test_class_extend ... ERROR

tests.test_avobject.test_set ... ERROR

tests.test_avobject.test_get ... ERROR

tests.test_avobject.test_save ... ERROR

tests.test_avquery.test_basic_query ... ERROR

tests.test_geo_point.test_invalid ... ok

tests.test_geo_point.test_setter ... ok

tests.test_geo_point.test_dump ... ok

tests.test_geo_point.test_radians_to ... ok

tests.test_geo_point.test_eq ... ok

======================================================================

ERROR: tests.test_avobject.test_extend

----------------------------------------------------------------------

Traceback (most recent call last):

File "/Library/Python/2.7/site-packages/nose/case.py", line 197, in runTest

self.test(*self.arg)

File "/private/tmp/python-sdk/tests/test_avobject.py", line 21, in test_extend

ok_(Object.extend('Album'))

AttributeError: type object 'Object' has no attribute 'extend'

======================================================================

ERROR: tests.test_avobject.test_class_extend

----------------------------------------------------------------------

Traceback (most recent call last):

File "/Library/Python/2.7/site-packages/nose/case.py", line 197, in runTest

self.test(*self.arg)

File "/private/tmp/python-sdk/tests/test_avobject.py", line 28, in test_class_extend

assert 'title' in Album._fields

AttributeError: type object 'Album' has no attribute '_fields'

======================================================================

ERROR: tests.test_avobject.test_set

----------------------------------------------------------------------

Traceback (most recent call last):

File "/Library/Python/2.7/site-packages/nose/case.py", line 197, in runTest

self.test(*self.arg)

File "/private/tmp/python-sdk/tests/test_avobject.py", line 32, in test_set

Album = Object.extend('Album')

AttributeError: type object 'Object' has no attribute 'extend'

======================================================================

ERROR: tests.test_avobject.test_get

----------------------------------------------------------------------

Traceback (most recent call last):

File "/Library/Python/2.7/site-packages/nose/case.py", line 197, in runTest

self.test(*self.arg)

File "/private/tmp/python-sdk/tests/test_avobject.py", line 40, in test_get

Album = Object.extend('Album')

AttributeError: type object 'Object' has no attribute 'extend'

======================================================================

ERROR: tests.test_avobject.test_save

----------------------------------------------------------------------

Traceback (most recent call last):

File "/Library/Python/2.7/site-packages/nose/case.py", line 197, in runTest

self.test(*self.arg)

File "/private/tmp/python-sdk/tests/test_avobject.py", line 49, in test_save

Album = Object.extend('Album')

AttributeError: type object 'Object' has no attribute 'extend'

======================================================================

ERROR: tests.test_avquery.test_basic_query

----------------------------------------------------------------------

Traceback (most recent call last):

File "/Library/Python/2.7/site-packages/nose/case.py", line 267, in setUp

try_run(self.test, names)

File "/Library/Python/2.7/site-packages/nose/util.py", line 470, in try_run

return func()

File "/private/tmp/python-sdk/tests/test_avquery.py", line 26, in setup_func

albums = Query(GameScore).find()

File "/private/tmp/python-sdk/leancloud/query.py", line 105, in find

result = rest.get('/classes/{}'.format(self._query_class._class_name), self.dump())

AttributeError: type object 'GameScore' has no attribute '_class_name'

----------------------------------------------------------------------

Ran 11 tests in 0.100s

FAILED (errors=6)

 类似资料: