Commit 93d37131 authored by Alain Takoudjou's avatar Alain Takoudjou

[slapos_crm] fix failing crm skins tests after include error message in...

[slapos_crm] fix failing crm skins tests after include error message in generated ticket for hosting subscription
parent 6eb8674b
...@@ -2731,6 +2731,7 @@ class TestSlapOSHostingSubscription_createSupportRequestEvent(SlapOSTestCaseMixi ...@@ -2731,6 +2731,7 @@ class TestSlapOSHostingSubscription_createSupportRequestEvent(SlapOSTestCaseMixi
return support_request return support_request
@simulate('ERP5Site_isSupportRequestCreationClosed', '*args, **kwargs','return 0') @simulate('ERP5Site_isSupportRequestCreationClosed', '*args, **kwargs','return 0')
@simulate('SoftwareInstance_hasReportedError', '*args, **kwargs','return "MSG"')
@simulate('NotificationTool_getDocumentValue', @simulate('NotificationTool_getDocumentValue',
'reference=None', 'reference=None',
'assert reference == "test-slapos-crm-check.notification"\n' \ 'assert reference == "test-slapos-crm-check.notification"\n' \
...@@ -2779,6 +2780,7 @@ class TestSlapOSHostingSubscription_createSupportRequestEvent(SlapOSTestCaseMixi ...@@ -2779,6 +2780,7 @@ class TestSlapOSHostingSubscription_createSupportRequestEvent(SlapOSTestCaseMixi
self.assertEqual(None, ticket) self.assertEqual(None, ticket)
@simulate('ERP5Site_isSupportRequestCreationClosed', '*args, **kwargs','return 1') @simulate('ERP5Site_isSupportRequestCreationClosed', '*args, **kwargs','return 1')
@simulate('SoftwareInstance_hasReportedError', '*args, **kwargs','return "MSG"')
def testHostingSubscription_createSupportRequestEvent_closed(self): def testHostingSubscription_createSupportRequestEvent_closed(self):
hosting_subscription = self._makeHostingSubscription() hosting_subscription = self._makeHostingSubscription()
self.assertEqual(None, self.assertEqual(None,
...@@ -2786,6 +2788,7 @@ class TestSlapOSHostingSubscription_createSupportRequestEvent(SlapOSTestCaseMixi ...@@ -2786,6 +2788,7 @@ class TestSlapOSHostingSubscription_createSupportRequestEvent(SlapOSTestCaseMixi
hosting_subscription, "test-slapos-crm-check.notification")) hosting_subscription, "test-slapos-crm-check.notification"))
@simulate('ERP5Site_isSupportRequestCreationClosed', '*args, **kwargs','return 0') @simulate('ERP5Site_isSupportRequestCreationClosed', '*args, **kwargs','return 0')
@simulate('SoftwareInstance_hasReportedError', '*args, **kwargs','return "MSG"')
def testHostingSubscription_createSupportRequestEvent_no_person(self): def testHostingSubscription_createSupportRequestEvent_no_person(self):
hosting_subscription = self._makeHostingSubscription() hosting_subscription = self._makeHostingSubscription()
hosting_subscription.setDestinationSectionValue(None) hosting_subscription.setDestinationSectionValue(None)
......
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