Commit c951cc95 authored by Romain Courteaud's avatar Romain Courteaud

[officejs_test] Update test

parent 1b522293
......@@ -77,12 +77,12 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
my_zip.writestr('gadget_n_' + str(i) + '.html', 'My super gadget ' + str(i))
my_zip.close()
version = 'My Bar version %s' % timestamp
self.portal.ERP5Site_createNewSoftwarePublication(
description = 'My Bar description %s' % timestamp
title = 'My Foo App %s' % timestamp
self.portal.SoftwareProductModule_createNewApplication(
import_file,
'software/application',
'My Foo App',
version
title,
description=description
)
###################################
......@@ -97,9 +97,17 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
self.portal.portal_alarms.officejs_process_submit_software_publication\
.activeSense()
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(
portal_type='Static Web Section',
title=version
id=software_release.getReference()
)
###################################
......
......@@ -45,12 +45,7 @@
<item>
<key> <string>text_content_warning_message</string> </key>
<value>
<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>
<tuple/>
</value>
</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