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): ...@@ -61,10 +61,13 @@ class TestERP5PayzenSecurePaymenConstraint(TestERP5PayzenSecurePaymentMixin):
self.assertNotIn(message, getMessageList(self.service)) self.assertNotIn(message, getMessageList(self.service))
def test_service_username(self): 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): 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): def test_link_url_string(self):
self._test('Payzen URL have to be set', 'link_url_string') self._test('Payzen URL have to be set', 'link_url_string')
...@@ -144,7 +147,8 @@ class TestERP5PayzenSecurePayment(TestERP5PayzenSecurePaymentMixin): ...@@ -144,7 +147,8 @@ class TestERP5PayzenSecurePayment(TestERP5PayzenSecurePaymentMixin):
payzen_vads_ctx_mode='TEST', payzen_vads_ctx_mode='TEST',
payzen_vads_page_action='REGISTER', payzen_vads_page_action='REGISTER',
payzen_vads_version='V2', payzen_vads_version='V2',
service_username='0123456' service_username='0123456',
service_api_key='ABC123'
) )
pt_id = str(random.random()) pt_id = str(random.random())
self.portal.portal_skins.custom.manage_addProduct['PageTemplates']\ self.portal.portal_skins.custom.manage_addProduct['PageTemplates']\
......
...@@ -10,6 +10,12 @@ ...@@ -10,6 +10,12 @@
<key> <string>default_reference</string> </key> <key> <string>default_reference</string> </key>
<value> <string>testERP5PayzenSecurePayment</string> </value> <value> <string>testERP5PayzenSecurePayment</string> </value>
</item> </item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>test.erp5.testERP5PayzenSecurePayment</string> </value> <value> <string>test.erp5.testERP5PayzenSecurePayment</string> </value>
...@@ -24,6 +30,18 @@ ...@@ -24,6 +30,18 @@
<none/> <none/>
</value> </value>
</item> </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> <item>
<key> <string>version</string> </key> <key> <string>version</string> </key>
<value> <string>erp5</string> </value> <value> <string>erp5</string> </value>
...@@ -74,35 +92,6 @@ ...@@ -74,35 +92,6 @@
<key> <string>action</string> </key> <key> <string>action</string> </key>
<value> <string>validate</string> </value> <value> <string>validate</string> </value>
</item> </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> <item>
<key> <string>validation_state</string> </key> <key> <string>validation_state</string> </key>
<value> <string>validated</string> </value> <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