Commit dfa8d42f authored by Romain Courteaud's avatar Romain Courteaud

slapos_crm: test: ticket.approveRegistration was dropped

parent f2b915ed
...@@ -362,7 +362,8 @@ class TestCRMPropertySheetConstraint(SlapOSTestCaseMixin): ...@@ -362,7 +362,8 @@ class TestCRMPropertySheetConstraint(SlapOSTestCaseMixin):
self.support_request = portal.support_request_module.newContent( self.support_request = portal.support_request_module.newContent(
portal_type="Support Request", portal_type="Support Request",
destination_decision=person_user.getRelativeUrl(), destination_value=person_user,
destination_decision_value=person_user,
#specialise= #specialise=
) )
...@@ -376,13 +377,17 @@ class TestCRMPropertySheetConstraint(SlapOSTestCaseMixin): ...@@ -376,13 +377,17 @@ class TestCRMPropertySheetConstraint(SlapOSTestCaseMixin):
def testCheckCausalitySourceDestinationConsistency(self): def testCheckCausalitySourceDestinationConsistency(self):
person = self.portal.portal_membership.getAuthenticatedMember().getUserValue() person = self.portal.portal_membership.getAuthenticatedMember().getUserValue()
self.support_request.approveRegistration() self.support_request.Ticket_createProjectEvent(
"foo", "incoming", "Web Message",
self.portal.service_module.slapos_crm_information.getRelativeUrl(),
"bar", "text/plain"
)
self.tic() self.tic()
self.logout() self.logout()
self.login() self.login()
event = self.support_request.getCausalityValue() event = self.support_request.getFollowUpRelatedValue()
self.assertNotEqual(event, None) self.assertNotEqual(event, None)
self.assertFalse(event.checkConsistency()) self.assertFalse(event.checkConsistency())
...@@ -405,13 +410,17 @@ class TestCRMPropertySheetConstraint(SlapOSTestCaseMixin): ...@@ -405,13 +410,17 @@ class TestCRMPropertySheetConstraint(SlapOSTestCaseMixin):
def testCheckCustomerAsSourceOrDestinationConsistency(self): def testCheckCustomerAsSourceOrDestinationConsistency(self):
person = self.portal.portal_membership.getAuthenticatedMember().getUserValue() person = self.portal.portal_membership.getAuthenticatedMember().getUserValue()
self.support_request.approveRegistration() self.support_request.Ticket_createProjectEvent(
"foo", "incoming", "Web Message",
self.portal.service_module.slapos_crm_information.getRelativeUrl(),
"bar", "text/plain"
)
self.tic() self.tic()
self.logout() self.logout()
self.login() self.login()
event = self.support_request.getCausalityValue() event = self.support_request.getFollowUpRelatedValue()
self.assertNotEqual(event, None) self.assertNotEqual(event, None)
self.assertFalse(event.checkConsistency()) self.assertFalse(event.checkConsistency())
......
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