lanto03 / couchdb-python

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

All tests fail on 0.10.1 #108

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. install apache-couchdb-0.10.1
2. install couchdb-python hg trunk
3. run nosetests

What is the expected output? What do you see instead?
I'm expecting to see no error but got the following instead:

% nosetests   
EEEEFEEE
======================================================================
ERROR: test_basics (couchdb.tests.couch_tests.CouchTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/thor/src/couchdb-python/couchdb/tests/couch_tests.py", line
54, in test_basics
    del self.db['0']
  File "/home/thor/src/couchdb-python/couchdb/client.py", line 325, in
__delitem__
    self.resource.delete(id, rev=resp['etag'].strip('"'))
  File "/home/thor/src/couchdb-python/couchdb/client.py", line 1013, in delete
    return self._request('DELETE', path, headers=headers, **params)
  File "/home/thor/src/couchdb-python/couchdb/client.py", line 1067, in
_request
    raise ResourceNotFound(error)
ResourceNotFound: ('not_found', 'deleted')

======================================================================
ERROR: test_collation (couchdb.tests.couch_tests.CouchTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/thor/src/couchdb-python/couchdb/tests/couch_tests.py", line
234, in test_collation
    self.db['0'] = {'bar': 0}
  File "/home/thor/src/couchdb-python/couchdb/client.py", line 345, in
__setitem__
    resp, data = self.resource.put(id, content=content)
  File "/home/thor/src/couchdb-python/couchdb/client.py", line 1027, in put
    **params)
  File "/home/thor/src/couchdb-python/couchdb/client.py", line 1069, in
_request
    raise ResourceConflict(error)
ResourceConflict: ('conflict', 'Document update conflict.')

======================================================================
ERROR: test_conflict_detection (couchdb.tests.couch_tests.CouchTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/thor/src/couchdb-python/couchdb/tests/couch_tests.py", line
95, in test_conflict_detection
    self.db['foo'] = doc1
  File "/home/thor/src/couchdb-python/couchdb/client.py", line 345, in
__setitem__
    resp, data = self.resource.put(id, content=content)
  File "/home/thor/src/couchdb-python/couchdb/client.py", line 1027, in put
    **params)
  File "/home/thor/src/couchdb-python/couchdb/client.py", line 1069, in
_request
    raise ResourceConflict(error)
ResourceConflict: ('conflict', 'Document update conflict.')

======================================================================
ERROR: test_design_docs (couchdb.tests.couch_tests.CouchTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/thor/src/couchdb-python/couchdb/tests/couch_tests.py", line
214, in test_design_docs
    self.db[str(i)] = {'integer': i, 'string': str(i)}
  File "/home/thor/src/couchdb-python/couchdb/client.py", line 345, in
__setitem__
    resp, data = self.resource.put(id, content=content)
  File "/home/thor/src/couchdb-python/couchdb/client.py", line 1027, in put
    **params)
  File "/home/thor/src/couchdb-python/couchdb/client.py", line 1069, in
_request
    raise ResourceConflict(error)
ResourceConflict: ('conflict', 'Document update conflict.')

======================================================================
ERROR: test_lots_of_docs (couchdb.tests.couch_tests.CouchTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/thor/src/couchdb-python/couchdb/tests/couch_tests.py", line
116, in test_lots_of_docs
    self.db[str(i)] = {'integer': i, 'string': str(i)}
  File "/home/thor/src/couchdb-python/couchdb/client.py", line 345, in
__setitem__
    resp, data = self.resource.put(id, content=content)
  File "/home/thor/src/couchdb-python/couchdb/client.py", line 1027, in put
    **params)
  File "/home/thor/src/couchdb-python/couchdb/client.py", line 1069, in
_request
    raise ResourceConflict(error)
ResourceConflict: ('conflict', 'Document update conflict.')

======================================================================
ERROR: test_multiple_rows (couchdb.tests.couch_tests.CouchTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/thor/src/couchdb-python/couchdb/tests/couch_tests.py", line
133, in test_multiple_rows
    self.db['NC'] = {'cities': ["Charlotte", "Raleigh"]}
  File "/home/thor/src/couchdb-python/couchdb/client.py", line 345, in
__setitem__
    resp, data = self.resource.put(id, content=content)
  File "/home/thor/src/couchdb-python/couchdb/client.py", line 1027, in put
    **params)
  File "/home/thor/src/couchdb-python/couchdb/client.py", line 1069, in
_request
    raise ResourceConflict(error)
ResourceConflict: ('conflict', 'Document update conflict.')

======================================================================
ERROR: test_utf8_encoding (couchdb.tests.couch_tests.CouchTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/thor/src/couchdb-python/couchdb/tests/couch_tests.py", line
201, in test_utf8_encoding
    self.db[str(idx)] = {'text': text}
  File "/home/thor/src/couchdb-python/couchdb/client.py", line 345, in
__setitem__
    resp, data = self.resource.put(id, content=content)
  File "/home/thor/src/couchdb-python/couchdb/client.py", line 1027, in put
    **params)
  File "/home/thor/src/couchdb-python/couchdb/client.py", line 1069, in
_request
    raise ResourceConflict(error)
ResourceConflict: ('conflict', 'Document update conflict.')

======================================================================
FAIL: test_large_docs (couchdb.tests.couch_tests.CouchTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/thor/src/couchdb-python/couchdb/tests/couch_tests.py", line
190, in test_large_docs
    self.assertEqual(4, len(results))
AssertionError: 4 != 5

----------------------------------------------------------------------
Ran 8 tests in 0.379s

FAILED (errors=7, failures=1)

What version of the product are you using? On what operating system?
Ubuntu 9.10 couchdb 0.10.1 and couchdb-python hg-trunk install from source.

Please provide any additional information below.

Original issue reported on code.google.com by nicolas....@gmail.com on 15 Dec 2009 at 5:16

GoogleCodeExporter commented 8 years ago
The problem is related to 
http://code.google.com/p/couchdb-python/issues/detail?id=85
and was corrected using:

sudo pip install --upgrade hg+https://couchdb-python.googlecode.com/hg

and then

sudo pip install --upgrade hg+https://httplib2.googlecode.com/hg/

% nosetests .
........
----------------------------------------------------------------------
Ran 8 tests in 10.010s

OK

Sorry about the noise.

Original comment by nicolas....@gmail.com on 15 Dec 2009 at 6:40

GoogleCodeExporter commented 8 years ago
You can also just work with the recent 0.6.1 release, if you just get either the
0.4.0 release of httplib2 or their hg tip version.

BTW, it looks like nosetests doesn't find our test suite correctly; you may 
want to
run PYTHONPATH=. python couchdb/tests/__init__.py.

Original comment by djc.ochtman on 15 Dec 2009 at 7:21