Commit 7fcb7c4c authored by Roque's avatar Roque

officejs_test: extend appstore json test (and fix test name)

parent 9e0e1162
...@@ -115,6 +115,10 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin): ...@@ -115,6 +115,10 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
self.assertTrue('logo.png' in app['application_image_url']) self.assertTrue('logo.png' in app['application_image_url'])
self.assertEquals(app['application_description'], 'application test') self.assertEquals(app['application_description'], 'application test')
self.assertEquals(app['application_image_type'], 'image') self.assertEquals(app['application_image_type'], 'image')
date = app['application_submitted'].encode('ascii')
self.assertEquals(date, time.strftime('%m/%d/%Y'))
date = app['application_published'].encode('ascii')
self.assertEquals(date, time.strftime('%m/%d/%Y'))
def test_appstore_add_an_application(self): def test_appstore_add_an_application(self):
title = 'My Application %s' % time.time() title = 'My Application %s' % time.time()
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
</item> </item>
<item> <item>
<key> <string>default_reference</string> </key> <key> <string>default_reference</string> </key>
<value> <string>testOfficeJSScenarioAppsore</string> </value> <value> <string>testOfficeJSScenarioAppstore</string> </value>
</item> </item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>test.erp5.testOfficeJSScenarioAppsore</string> </value> <value> <string>test.erp5.testOfficeJSScenarioAppstore</string> </value>
</item> </item>
<item> <item>
<key> <string>portal_type</string> </key> <key> <string>portal_type</string> </key>
......
...@@ -2,6 +2,6 @@ test.erp5.testOfficeJSSecurity ...@@ -2,6 +2,6 @@ test.erp5.testOfficeJSSecurity
test.erp5.testOfficeJSScenario test.erp5.testOfficeJSScenario
test.erp5.testOfficeJSScenarioRjsUI test.erp5.testOfficeJSScenarioRjsUI
test.erp5.testFunctionalOfficeJSAppstoreUI test.erp5.testFunctionalOfficeJSAppstoreUI
test.erp5.testOfficeJSScenarioAppsore test.erp5.testOfficeJSScenarioAppstore
test.erp5.testOfficeJSAppstoreMixin test.erp5.testOfficeJSAppstoreMixin
test.erp5.testOfficeJSAppstoreConfigurator test.erp5.testOfficeJSAppstoreConfigurator
\ 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