Commit 65d6db05 authored by Romain Courteaud's avatar Romain Courteaud

Suspend automatically created ticket.

parent e9e11516
...@@ -75,6 +75,7 @@ else:\n ...@@ -75,6 +75,7 @@ else:\n
resource=portal.portal_preferences.getPreferredSupportRequestResource(),\n resource=portal.portal_preferences.getPreferredSupportRequestResource(),\n
)\n )\n
ticket.validate(comment=\'New automatic ticket for %s\' % context.getTitle())\n ticket.validate(comment=\'New automatic ticket for %s\' % context.getTitle())\n
ticket.suspend(comment=\'New automatic ticket for %s\' % context.getTitle())\n
\n \n
try:\n try:\n
mapping = integration_site.getCategoryFromMapping(\n mapping = integration_site.getCategoryFromMapping(\n
......
...@@ -74,7 +74,7 @@ class TestSlapOSPaymentTransaction_addPayzenTicket(testSlapOSMixin): ...@@ -74,7 +74,7 @@ class TestSlapOSPaymentTransaction_addPayzenTicket(testSlapOSMixin):
transaction.edit(payment_mode="payzen") transaction.edit(payment_mode="payzen")
ticket = transaction.PaymentTransaction_addPayzenTicket() ticket = transaction.PaymentTransaction_addPayzenTicket()
self.assertEquals(ticket.getPortalType(), 'Support Request') self.assertEquals(ticket.getPortalType(), 'Support Request')
self.assertEquals(ticket.getSimulationState(), 'validated') self.assertEquals(ticket.getSimulationState(), 'suspended')
self.assertEquals(ticket.getSourceProject(), transaction.getRelativeUrl()) self.assertEquals(ticket.getSourceProject(), transaction.getRelativeUrl())
self.assertEquals(ticket.getTitle(), 'Payzen Transaction to check for "None"') self.assertEquals(ticket.getTitle(), 'Payzen Transaction to check for "None"')
......
101 102
\ No newline at end of file \ No newline at end of file
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