carolinux / gdata-python-client

Automatically exported from code.google.com/p/gdata-python-client
0 stars 1 forks source link

tests.gdata_tests.docs.service_test is all sorts of broken #477

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
./service_test.py

DOCUMENT_KIND_TERM missing on module, unauthorized errors, deprecation 
warnings... these tests need some love.

Original issue reported on code.google.com by vicfry...@google.com on 20 Dec 2010 at 5:36

GoogleCodeExporter commented 9 years ago
I got it down to this.  Marking this as fixed after I submit my patch.  The 
error shown is unrelated, a legit failure.

$ ./service_test.py 
DocList API Tests
NOTE: Please run these tests only with a test account. The tests may delete or 
update your data.
Please enter your username: ...
Password: 
.................E...
======================================================================
ERROR: testUpdateDocumentMetadataAndContent (__main__.DocumentListUpdateTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./service_test.py", line 348, in testUpdateDocumentMetadataAndContent
    updated_entry = self.editClient.Put(ms, uri)
  File "/home/vicfryzel/workspace/gdata-python-client/src/gdata/service.py", line 1395, in Put
    media_source=media_source, converter=converter)
  File "/home/vicfryzel/workspace/gdata-python-client/src/gdata/service.py", line 1358, in PostOrPut
    'reason': server_response.reason, 'body': result_body}
RequestError: {'status': 400, 'body': 'Could not convert document.', 'reason': 
'Bad Request'}

----------------------------------------------------------------------
Ran 21 tests in 42.991s

FAILED (errors=1)

Original comment by vicfry...@google.com on 20 Dec 2010 at 7:07

GoogleCodeExporter commented 9 years ago
Fixed in revision 921.

Original comment by vicfry...@google.com on 20 Dec 2010 at 7:08