amirpk / gdata-python-client

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

tests.gdata_tests.docs_test produces errors #252

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run tests\run_data_tests

What is the expected output? What do you see instead?
I expect:
'Running all tests in module tests.gdata_tests.docs_test....OK'

This is what I get for most of the tests.  However, I also get this:

Running all tests in module tests.gdata_tests.docs_test
# ....EE..
# ======================================================================
# ERROR: testToAndFromStringWithData
(tests.gdata_tests.docs_test.DocumentListEntryTest)
# ----------------------------------------------------------------------
# # Traceback (most recent call last):
#   File "C:\Users\John\gdata-1.3.3\tests\gdata_tests\docs_test.py", line
46, in testToAndFromStringWithData
#     self.assertEqual(entry.writersCanInvite.value, 'true')
AttributeError: 'NoneType' object has no attribute 'value'
# 
# ======================================================================
# ERROR: testConvertActualData
(tests.gdata_tests.docs_test.DocumentListFeedTest)
# ----------------------------------------------------------------------
# # Traceback (most recent call last):
#   File "C:\Users\John\gdata-1.3.3\tests\gdata_tests\docs_test.py", line
73, in testConvertActualData
#     self.assertEqual(an_entry.writersCanInvite.value, 'true')
AttributeError: 'NoneType' object has no attribute 'value'
# 
# ----------------------------------------------------------------------
# Ran 8 tests in 0.016s
# 
# FAILED (errors=2)

What version of the product are you using?

1.3.3

Please provide any additional information below.

I've been trying to find solutions for these errors, but can't seem to
figure it out.  According to the documentation, these should run fine
without producing errors.

When I installed the client libraries, I simply extracted the gdata and
atom modules to the Python25\Lib\site-packages directory.

Apologies if I submitted this problem incorrectly or to the wrong place -
I'm a new/learning developer and Python is my first language.

Original issue reported on code.google.com by jspatr...@gmail.com on 8 Jun 2009 at 5:47

GoogleCodeExporter commented 9 years ago

Original comment by jscud.w...@gmail.com on 9 Jun 2009 at 4:53

GoogleCodeExporter commented 9 years ago
I got around the 'entry.writersCanInvite.value' error by commenting out the 
three lines 
which contain 'writersCanInvite' in 
'gdata-1.3.3/tests/gdata_tests/docs_test.py'.
After doing that run_data_tests.py completes w/o error.
I had no success in adding a writersCanInvite element to the 
DOCUMENT_LIST_ENTRY in 
'test_data.py'.

Original comment by bhaye...@gmail.com on 12 Jun 2009 at 8:06

GoogleCodeExporter commented 9 years ago

Original comment by jscud.w...@gmail.com on 1 Jul 2009 at 12:22