Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Cédric Le Ninivin
erp5
Commits
bf89717d
Commit
bf89717d
authored
Mar 12, 2019
by
Jérome Perrin
Committed by
Your Name
Mar 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ui_test_core: remove dead code
These extensions does not seem to be used. /reviewed-on
nexedi/erp5!845
parent
5caf53d8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
87 deletions
+0
-87
bt5/erp5_ui_test_core/ExtensionTemplateItem/portal_components/extension.erp5.ERP5Zuite.py
...emplateItem/portal_components/extension.erp5.ERP5Zuite.py
+0
-31
bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/Zuite_isReportGenerated.xml
...ortal_skins/erp5_ui_test_core/Zuite_isReportGenerated.xml
+0
-28
bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/Zuite_prepareReportDirectory.xml
..._skins/erp5_ui_test_core/Zuite_prepareReportDirectory.xml
+0
-28
No files found.
bt5/erp5_ui_test_core/ExtensionTemplateItem/portal_components/extension.erp5.ERP5Zuite.py
View file @
bf89717d
...
...
@@ -62,34 +62,3 @@ def appendTestToWebPage(text, test_text):
else
:
root
.
replace
(
table_list
[
0
],
tutorial_test
)
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!'
bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/Zuite_isReportGenerated.xml
deleted
100644 → 0
View file @
5caf53d8
<?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>
bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/Zuite_prepareReportDirectory.xml
deleted
100644 → 0
View file @
5caf53d8
<?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>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment