Commit f14403d5 authored by Jérome Perrin's avatar Jérome Perrin

configurator: create account matching constraint

Because we want to check consistency on all documents created by
configurator, we also need documents created during the test to be
consistent (or deleted)
parent 416c6212
Pipeline #19893 failed with stage
in 0 seconds
...@@ -625,7 +625,9 @@ class TestLiveConfiguratorWorkflowMixin(SecurityTestCase): ...@@ -625,7 +625,9 @@ class TestLiveConfiguratorWorkflowMixin(SecurityTestCase):
def stepViewAccount(self, sequence=None, sequence_list=None, **kw): def stepViewAccount(self, sequence=None, sequence_list=None, **kw):
account = self.portal.account_module.newContent( account = self.portal.account_module.newContent(
portal_type='Account') portal_type='Account',
account_type='expense',
)
# in draft state, # in draft state,
self.assertEqual('draft', account.getValidationState()) self.assertEqual('draft', account.getValidationState())
# everybody can see # everybody can see
...@@ -687,7 +689,9 @@ class TestLiveConfiguratorWorkflowMixin(SecurityTestCase): ...@@ -687,7 +689,9 @@ class TestLiveConfiguratorWorkflowMixin(SecurityTestCase):
def stepCopyPasteAccount(self, sequence=None, sequence_list=None, **kw): def stepCopyPasteAccount(self, sequence=None, sequence_list=None, **kw):
# tests copy / pasting accounts from account module # tests copy / pasting accounts from account module
account = self.portal.account_module.newContent( account = self.portal.account_module.newContent(
portal_type='Account') portal_type='Account',
account_type='expense',
)
# in draft state, # in draft state,
self.assertEqual('draft', account.getValidationState()) self.assertEqual('draft', account.getValidationState())
......
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