Commit fcd4c826 authored by Jérome Perrin's avatar Jérome Perrin

ui_test_core: remove dead code

These extensions does not seem to be used.

/reviewed-on !845
parent ddd3e26c
...@@ -62,34 +62,3 @@ def appendTestToWebPage(text, test_text): ...@@ -62,34 +62,3 @@ def appendTestToWebPage(text, test_text):
else: else:
root.replace(table_list[0], tutorial_test) root.replace(table_list[0], tutorial_test)
return lxml.html.tostring(root).replace('\n','').replace("\'","'") return lxml.html.tostring(root).replace('\n','').replace("\'","'")
from App.config import getConfiguration
import os
def prepareReportDirectory(self, expected_filename):
"""
Remove existing report with the given filename if any. This must be called
before a report button is clicked
"""
filename_path = os.path.join(getConfiguration().instancehome, 'var',
expected_filename)
if os.path.exists(filename_path):
os.remove(filename_path)
return 'Done'
def isReportGenerated(self, expected_filename):
"""
Check that the report has been generated. Firefox will not prompt for PDF
files as defined in ERP5Type.tests.ERP5TypeFunctionalTestCase.Firefox in
getPrefJs() method
"""
filename_path = os.path.join(getConfiguration().instancehome, 'var',
expected_filename)
if os.path.isfile(filename_path):
os.remove(filename_path)
return 'Done'
return 'Report not generated!'
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="ExternalMethod" module="Products.ExternalMethod.ExternalMethod"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_function</string> </key>
<value> <string>isReportGenerated</string> </value>
</item>
<item>
<key> <string>_module</string> </key>
<value> <string>ERP5Zuite</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Zuite_isReportGenerated</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Zuite_isReportGenerated</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="ExternalMethod" module="Products.ExternalMethod.ExternalMethod"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_function</string> </key>
<value> <string>prepareReportDirectory</string> </value>
</item>
<item>
<key> <string>_module</string> </key>
<value> <string>ERP5Zuite</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Zuite_prepareReportDirectory</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Zuite_prepareReportDirectory</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
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