bloodhound-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Bloodhound" <bloodhound-...@incubator.apache.org>
Subject [Apache Bloodhound] #469: Some batch modify unit test cases are failing
Date Sat, 16 Mar 2013 20:39:55 GMT
#469: Some batch modify unit test cases are failing
----------------------------------+--------------------
 Reporter:  rjollos               |      Owner:  nobody
     Type:  defect                |     Status:  new
 Priority:  major                 |  Milestone:
Component:  dashboard             |    Version:  0.4.0
 Keywords:  ITicketFieldProvider  |
----------------------------------+--------------------
 Several unit test cases in `trac.ticket.tests.batch.py` are failing. I've
 traced the failure of `test_add_batchmod_value_data_from_request` into
 `_get_new_ticket_values` , and
 `TicketSystem(self.env).get_ticket_fields()` is not returning `milestone`
 in the list due to the implementation of the in `ITicketFieldProvider`
 r1301116.

 {{{
 .EE....................E.
 ======================================================================
 ERROR: test_action_with_state_change (__main__.BatchModifyTestCase)
 Actions can have change status.
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "trac/ticket/tests/batch.py", line 224, in
 test_action_with_state_change
     self.assertFieldChanged(first_ticket_id, 'status', 'big')
   File "trac/ticket/tests/batch.py", line 30, in assertFieldChanged
     field_change = [c for c in changes if c[2] == field][0]
 IndexError: list index out of range

 ======================================================================
 ERROR: test_add_batchmod_value_data_from_request
 (__main__.BatchModifyTestCase)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "trac/ticket/tests/batch.py", line 73, in
 test_add_batchmod_value_data_from_request
     self.assertEqual(values['milestone'], 'milestone1')
 KeyError: 'milestone'

 ======================================================================
 ERROR: test_save_values (__main__.BatchModifyTestCase)
 Changed values are saved to all tickets.
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "trac/ticket/tests/batch.py", line 206, in test_save_values
     self.assertFieldChanged(first_ticket_id, 'component', 'bar')
   File "trac/ticket/tests/batch.py", line 30, in assertFieldChanged
     field_change = [c for c in changes if c[2] == field][0]
 IndexError: list index out of range

 ----------------------------------------------------------------------
 Ran 25 tests in 0.432s

 FAILED (errors=3)
 }}}

-- 
Ticket URL: <https://issues.apache.org/bloodhound/ticket/469>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound (incubating) issue tracker

Mime
View raw message