When running trial i get: exceptions.AttributeError: 'CouchDatabase' object has no attribute 'get_records_and_type'

Bug #411475 reported by John O'Brien on 2009-08-10
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
desktopcouch
Undecided
Unassigned

Bug Description

I get the errors below when running trial desktopcouch.
Also, the code does not seem to follow any PEP 8 guidelines.

===============================================================================
[ERROR]: desktopcouch.records.tests.test_server.TestCouchDatabase.test_func_get_records_and_type

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/testtools/testcase.py", line 175, in run
    testMethod()
  File "/home/john/canonical/ubuntuone/desktopcouch/urllibquote/desktopcouch/records/tests/test_server.py", line 148, in test_func_get_records_and_type
    results = self.database.get_records_and_type(create_view=True)
exceptions.AttributeError: 'CouchDatabase' object has no attribute 'get_records_and_type'
===============================================================================
[ERROR]: desktopcouch.records.tests.test_server.TestCouchDatabase.test_get_view_by_type_createxcl_fail

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/testtools/testcase.py", line 175, in run
    testMethod()
  File "/home/john/canonical/ubuntuone/desktopcouch/urllibquote/desktopcouch/records/tests/test_server.py", line 175, in test_get_view_by_type_createxcl_fail
    self.database.get_records_and_type(create_view=True)
exceptions.AttributeError: 'CouchDatabase' object has no attribute 'get_records_and_type'
===============================================================================
[ERROR]: desktopcouch.records.tests.test_server.TestCouchDatabase.test_get_view_by_type_new_but_already

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/testtools/testcase.py", line 175, in run
    testMethod()
  File "/home/john/canonical/ubuntuone/desktopcouch/urllibquote/desktopcouch/records/tests/test_server.py", line 170, in test_get_view_by_type_new_but_already
    self.database.get_records_and_type(create_view=True)
exceptions.AttributeError: 'CouchDatabase' object has no attribute 'get_records_and_type'
-------------------------------------------------------------------------------
Ran 36 tests in 4.112s

FAILED (errors=4, successes=32)

The function has been renamed to just get_records

Elliot Murphy (statik) on 2009-08-15
Changed in desktopcouch:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers