Commit f5dcc807 authored by Rafael Monnerat's avatar Rafael Monnerat

erp5_payzen_secure_payment: Update test.

parent 30e1d053
......@@ -61,10 +61,13 @@ class TestERP5PayzenSecurePaymenConstraint(TestERP5PayzenSecurePaymentMixin):
self.assertNotIn(message, getMessageList(self.service))
def test_service_username(self):
self._test('vads_site_id have to be set', 'service_username')
self._test('service_username have to be set', 'service_username')
def test_service_password(self):
self._test('Certificate has to be set.', 'service_password')
self._test('service_password has to be set.', 'service_password')
def test_service_api_key(self):
self._test('service_api_key has to be set.', 'service_api_key')
def test_link_url_string(self):
self._test('Payzen URL have to be set', 'link_url_string')
......@@ -144,7 +147,8 @@ class TestERP5PayzenSecurePayment(TestERP5PayzenSecurePaymentMixin):
payzen_vads_ctx_mode='TEST',
payzen_vads_page_action='REGISTER',
payzen_vads_version='V2',
service_username='0123456'
service_username='0123456',
service_api_key='ABC123'
)
pt_id = str(random.random())
self.portal.portal_skins.custom.manage_addProduct['PageTemplates']\
......
......@@ -10,6 +10,12 @@
<key> <string>default_reference</string> </key>
<value> <string>testERP5PayzenSecurePayment</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>test.erp5.testERP5PayzenSecurePayment</string> </value>
......@@ -24,6 +30,18 @@
<none/>
</value>
</item>
<item>
<key> <string>text_content_error_message</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>text_content_warning_message</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>version</string> </key>
<value> <string>erp5</string> </value>
......@@ -74,35 +92,6 @@
<key> <string>action</string> </key>
<value> <string>validate</string> </value>
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>ERP5TypeTestCase</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>time</string> </key>
<value>
<object>
<klass>
<global name="_reconstructor" module="copy_reg"/>
</klass>
<tuple>
<global name="DateTime" module="DateTime.DateTime"/>
<global name="object" module="__builtin__"/>
<none/>
</tuple>
<state>
<tuple>
<float>1377844605.76</float>
<string>GMT+9</string>
</tuple>
</state>
</object>
</value>
</item>
<item>
<key> <string>validation_state</string> </key>
<value> <string>validated</string> </value>
......
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