Modify

Opened 4 years ago

Closed 4 years ago

#13484 closed defect (cantfix)

Ticket status not changed in Trac 1.2.3

Reported by: Dirk Stöcker Owned by: Ryan J Ollos
Priority: high Component: AdvancedTicketWorkflowPlugin
Severity: blocker Keywords:
Cc: Trac Release: 1.2

Description (last modified by Ryan J Ollos)

The following tests fail:

$ python setup.py test
running test
running egg_info
writing requirements to TracAdvancedTicketWorkflow.egg-info/requires.txt
writing TracAdvancedTicketWorkflow.egg-info/PKG-INFO
writing top-level names to TracAdvancedTicketWorkflow.egg-info/top_level.txt
writing dependency_links to TracAdvancedTicketWorkflow.egg-info/dependency_links.txt
writing entry points to TracAdvancedTicketWorkflow.egg-info/entry_points.txt
writing manifest file 'TracAdvancedTicketWorkflow.egg-info/SOURCES.txt'
running build_ext
test_reset_milestone (advancedworkflow.tests.controller.AdvancedTicketWorkflowTestCase) ... ok
test_set_owner_to_component_owner (advancedworkflow.tests.controller.AdvancedTicketWorkflowTestCase) ... FAIL
test_set_owner_to_component_owner_with_missing_component (advancedworkflow.tests.controller.AdvancedTicketWorkflowTestCase) ... FAIL
test_set_owner_to_field (advancedworkflow.tests.controller.AdvancedTicketWorkflowTestCase) ... FAIL
test_set_owner_to_previous (advancedworkflow.tests.controller.AdvancedTicketWorkflowTestCase) ... FAIL
test_set_owner_to_reporter (advancedworkflow.tests.controller.AdvancedTicketWorkflowTestCase) ... FAIL
test_set_status_to_previous (advancedworkflow.tests.controller.AdvancedTicketWorkflowTestCase) ... ok

======================================================================
FAIL: test_set_owner_to_component_owner (advancedworkflow.tests.controller.AdvancedTicketWorkflowTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/rjollos/Documents/Workspace/trac-dev/trac-hacks/advancedticketworkflowplugin/1.2/advancedworkflow/tests/controller.py", line 88, in test_set_owner_to_component_owner
    self.assertEqual('assigned', ticket['status'])
AssertionError: 'assigned' != u'new'

======================================================================
FAIL: test_set_owner_to_component_owner_with_missing_component (advancedworkflow.tests.controller.AdvancedTicketWorkflowTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/rjollos/Documents/Workspace/trac-dev/trac-hacks/advancedticketworkflowplugin/1.2/advancedworkflow/tests/controller.py", line 106, in test_set_owner_to_component_owner_with_missing_component
    self.assertEqual('assigned', ticket['status'])
AssertionError: 'assigned' != u'new'

======================================================================
FAIL: test_set_owner_to_field (advancedworkflow.tests.controller.AdvancedTicketWorkflowTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/rjollos/Documents/Workspace/trac-dev/trac-hacks/advancedticketworkflowplugin/1.2/advancedworkflow/tests/controller.py", line 125, in test_set_owner_to_field
    self.assertEqual('assigned', ticket['status'])
AssertionError: 'assigned' != u'new'

======================================================================
FAIL: test_set_owner_to_previous (advancedworkflow.tests.controller.AdvancedTicketWorkflowTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/rjollos/Documents/Workspace/trac-dev/trac-hacks/advancedticketworkflowplugin/1.2/advancedworkflow/tests/controller.py", line 144, in test_set_owner_to_previous
    self.assertEqual('assigned', ticket['status'])
AssertionError: 'assigned' != u'new'

======================================================================
FAIL: test_set_owner_to_reporter (advancedworkflow.tests.controller.AdvancedTicketWorkflowTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/rjollos/Documents/Workspace/trac-dev/trac-hacks/advancedticketworkflowplugin/1.2/advancedworkflow/tests/controller.py", line 69, in test_set_owner_to_reporter
    self.assertEqual('needinfo', ticket['status'])
AssertionError: 'needinfo' != u'new'

----------------------------------------------------------------------
Ran 7 tests in 0.272s

FAILED (failures=5)
Test failed: <unittest.runner.TextTestResult run=7 errors=0 failures=5>
error: Test failed: <unittest.runner.TextTestResult run=7 errors=0 failures=5>

Attachments (0)

Change History (8)

comment:1 Changed 4 years ago by Ryan J Ollos

Description: modified (diff)
Summary: Release 1.2.3 brekas advanced ticket workflow pluginTest failures with release 1.2.3

comment:2 Changed 4 years ago by Ryan J Ollos

Owner: set to Ryan J Ollos
Status: newaccepted

Tests fail after trac:r16552.

comment:3 Changed 4 years ago by Jun Omae

I use 0.12 branch. The 0.12 branch with Trac 1.0.17 has the same issue.

$ ~/venv/trac/1.0.17/bin/python setup.py test
running test
running egg_info
writing AdvancedTicketWorkflowPlugin.egg-info/PKG-INFO
writing top-level names to AdvancedTicketWorkflowPlugin.egg-info/top_level.txt
writing dependency_links to AdvancedTicketWorkflowPlugin.egg-info/dependency_links.txt
writing entry points to AdvancedTicketWorkflowPlugin.egg-info/entry_points.txt
reading manifest file 'AdvancedTicketWorkflowPlugin.egg-info/SOURCES.txt'
writing manifest file 'AdvancedTicketWorkflowPlugin.egg-info/SOURCES.txt'
running build_ext
test_reset_milestone (advancedworkflow.tests.controller.AdvancedTicketWorkflowTestCase) ... ok
test_set_owner_to_component_owner (advancedworkflow.tests.controller.AdvancedTicketWorkflowTestCase) ... FAIL
test_set_owner_to_component_owner_with_missing_component (advancedworkflow.tests.controller.AdvancedTicketWorkflowTestCase) ... FAIL
test_set_owner_to_field (advancedworkflow.tests.controller.AdvancedTicketWorkflowTestCase) ... FAIL
test_set_owner_to_previous (advancedworkflow.tests.controller.AdvancedTicketWorkflowTestCase) ... FAIL
test_set_owner_to_reporter (advancedworkflow.tests.controller.AdvancedTicketWorkflowTestCase) ... FAIL
test_set_status_to_previous (advancedworkflow.tests.controller.AdvancedTicketWorkflowTestCase) ... ok

======================================================================
FAIL: test_set_owner_to_component_owner (advancedworkflow.tests.controller.AdvancedTicketWorkflowTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/src/trac-hacks.org/advancedticketworkflowplugin/0.12/advancedworkflow/tests/controller.py", line 88, in test_set_owner_to_component_owner
    self.assertEqual('assigned', ticket['status'])
AssertionError: 'assigned' != u'new'

======================================================================
FAIL: test_set_owner_to_component_owner_with_missing_component (advancedworkflow.tests.controller.AdvancedTicketWorkflowTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/src/trac-hacks.org/advancedticketworkflowplugin/0.12/advancedworkflow/tests/controller.py", line 106, in test_set_owner_to_component_owner_with_missing_component
    self.assertEqual('assigned', ticket['status'])
AssertionError: 'assigned' != u'new'

======================================================================
FAIL: test_set_owner_to_field (advancedworkflow.tests.controller.AdvancedTicketWorkflowTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/src/trac-hacks.org/advancedticketworkflowplugin/0.12/advancedworkflow/tests/controller.py", line 125, in test_set_owner_to_field
    self.assertEqual('assigned', ticket['status'])
AssertionError: 'assigned' != u'new'

======================================================================
FAIL: test_set_owner_to_previous (advancedworkflow.tests.controller.AdvancedTicketWorkflowTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/src/trac-hacks.org/advancedticketworkflowplugin/0.12/advancedworkflow/tests/controller.py", line 144, in test_set_owner_to_previous
    self.assertEqual('assigned', ticket['status'])
AssertionError: 'assigned' != u'new'

======================================================================
FAIL: test_set_owner_to_reporter (advancedworkflow.tests.controller.AdvancedTicketWorkflowTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/src/trac-hacks.org/advancedticketworkflowplugin/0.12/advancedworkflow/tests/controller.py", line 69, in test_set_owner_to_reporter
    self.assertEqual('needinfo', ticket['status'])
AssertionError: 'needinfo' != u'new'

----------------------------------------------------------------------
Ran 7 tests in 0.778s

FAILED (failures=5)

comment:4 Changed 4 years ago by Ryan J Ollos

Description: modified (diff)
Summary: Test failures with release 1.2.3Ticket status not changed in Trac 1.2.3

comment:5 Changed 4 years ago by Ryan J Ollos

This will be fixed in trac:#13086 and we'll have to require Trac <= 1.2.2 or >= 1.2.4 for the plugin.

comment:6 Changed 4 years ago by Ryan J Ollos

In 17289:

TracAdvancedTicketWorkflow 1.2.1dev: Require Trac >= 1.2, but not 1.2.3

Refs #13484.

comment:7 Changed 4 years ago by Ryan J Ollos

In 17290:

AdvancedTicketWorkflowPlugin 0.12.0dev: Set required Trac version

Refs #13484.

comment:8 Changed 4 years ago by Ryan J Ollos

Resolution: cantfix
Status: acceptedclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.