[Erp5-report] r32762 tatuya - /erp5/trunk/products/ERP5/tests/testBug.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Feb 18 13:10:17 CET 2010
Author: tatuya
Date: Thu Feb 18 13:10:11 2010
New Revision: 32762
URL: http://svn.erp5.org?rev=32762&view=rev
Log:
Add a test to reproduce a bug that to cancel a bug causes an authorization failer. Because canceling a bug try to create an event by the after script, but the script can not create an event when cancelled state except a manager role user.
Modified:
erp5/trunk/products/ERP5/tests/testBug.py
Modified: erp5/trunk/products/ERP5/tests/testBug.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testBug.py?rev=32762&r1=32761&r2=32762&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testBug.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testBug.py [utf8] Thu Feb 18 13:10:11 2010
@@ -1,4 +1,4 @@
-##############################################################################
+#############################################################################
#
# Copyright (c) 2007-2008 Nexedi SA and Contributors. All Rights Reserved.
# Kevin Deldycke <kevin_AT_nexedi_DOT_com>
@@ -491,24 +491,24 @@
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet)
-# This tests is not Appliable anymore. It will be kept for a while.
-# def test_04_StopDateUpdatedOnCancel(self, quiet=QUIET, run=RUN_ALL_TEST):
-# """
-# Same test as above but on cancel action (test bug #600).
-# """
-# if not run: return
-# sequence_list = SequenceList()
-# step_list = [ 'stepCreateBug'
-# , 'stepOpenBug'
-# , 'stepTic'
-# , 'stepSetOldClosedDate'
-# , 'stepCancelBug'
-# , 'stepTic'
-# , 'stepCheckClosedDate'
-# ]
-# sequence_string = ' '.join(step_list)
-# sequence_list.addSequenceString(sequence_string)
-# sequence_list.play(self, quiet=quiet)
+ def test_04_StopDateUpdatedOnCancelWithUsualUser(self, quiet=QUIET, run=RUN_ALL_TEST):
+ """
+ Test that cancelBug with usual user.
+ """
+ if not run: return
+ sequence_list = SequenceList()
+ step_list = [ 'stepLoginUsualUser'
+ , 'stepCreateBug'
+ , 'stepOpenBug'
+ , 'stepTic'
+ , 'stepSetOldClosedDate'
+ , 'stepCancelBug'
+ , 'stepTic'
+ , 'stepCheckClosedDate'
+ ]
+ sequence_string = ' '.join(step_list)
+ sequence_list.addSequenceString(sequence_string)
+ sequence_list.play(self, quiet=quiet)
def test_05_setCheckBugClone(self, quiet=QUIET, run=RUN_ALL_TEST):
"""
More information about the Erp5-report
mailing list