Commit f215c9d2 authored by Yusuke Muraoka's avatar Yusuke Muraoka

no need tic for workflow change


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32256 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent de965679
...@@ -1144,11 +1144,8 @@ class TestWorkflow(SecurityTestCase): ...@@ -1144,11 +1144,8 @@ class TestWorkflow(SecurityTestCase):
def test_autoplanned(self): def test_autoplanned(self):
sale_invoice = self.portal.getDefaultModule('Sale Invoice').newContent(portal_type='Sale Invoice') sale_invoice = self.portal.getDefaultModule('Sale Invoice').newContent(portal_type='Sale Invoice')
self.assertEquals(sale_invoice.getSimulationState(), 'draft') self.assertEquals(sale_invoice.getSimulationState(), 'draft')
self.tic()
sale_invoice.autoPlan() sale_invoice.autoPlan()
self.assertEquals(sale_invoice.getSimulationState(), 'auto_planned') self.assertEquals(sale_invoice.getSimulationState(), 'auto_planned')
self.tic()
# other as anonymous # other as anonymous
self.failIfUserCanAccessDocument(self.other.getId(), sale_invoice) self.failIfUserCanAccessDocument(self.other.getId(), sale_invoice)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment