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

Bug #411475 reported by John O'Brien
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
desktopcouch
Fix Released
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)

Revision history for this message
Rick Spencer (rick-rickspencer3) wrote :

The function has been renamed to just get_records

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.