Commit c951cc95 authored by Romain Courteaud's avatar Romain Courteaud

[officejs_test] Update test

parent 1b522293
...@@ -77,12 +77,12 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin): ...@@ -77,12 +77,12 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
my_zip.writestr('gadget_n_' + str(i) + '.html', 'My super gadget ' + str(i)) my_zip.writestr('gadget_n_' + str(i) + '.html', 'My super gadget ' + str(i))
my_zip.close() my_zip.close()
version = 'My Bar version %s' % timestamp description = 'My Bar description %s' % timestamp
self.portal.ERP5Site_createNewSoftwarePublication( title = 'My Foo App %s' % timestamp
self.portal.SoftwareProductModule_createNewApplication(
import_file, import_file,
'software/application', title,
'My Foo App', description=description
version
) )
################################### ###################################
...@@ -97,9 +97,17 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin): ...@@ -97,9 +97,17 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
self.portal.portal_alarms.officejs_process_submit_software_publication\ self.portal.portal_alarms.officejs_process_submit_software_publication\
.activeSense() .activeSense()
self.tic() self.tic()
software_product = self.portal.portal_catalog.getResultValue(
portal_type='Software Product',
title=title
)
software_release = self.portal.portal_catalog.getResultValue(
portal_type='Software Release',
follow_up_relative_url=software_product.getRelativeUrl()
)
web_section = self.portal.portal_catalog.getResultValue( web_section = self.portal.portal_catalog.getResultValue(
portal_type='Static Web Section', portal_type='Static Web Section',
title=version id=software_release.getReference()
) )
################################### ###################################
......
...@@ -45,12 +45,7 @@ ...@@ -45,12 +45,7 @@
<item> <item>
<key> <string>text_content_warning_message</string> </key> <key> <string>text_content_warning_message</string> </key>
<value> <value>
<tuple> <tuple/>
<string>W:108, 28: Unused variable \'api_path\' (unused-variable)</string>
<string>W:108, 38: Unused variable \'api_query\' (unused-variable)</string>
<string>W:108, 4: Unused variable \'api_scheme\' (unused-variable)</string>
<string>W:109, 6: Unused variable \'api_fragment\' (unused-variable)</string>
</tuple>
</value> </value>
</item> </item>
<item> <item>
......
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