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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alecs_myu
erp5
Commits
fcd4c826
Commit
fcd4c826
authored
Mar 12, 2019
by
Jérome Perrin
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
ddd3e26c
Changes
3
Show 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 @
fcd4c826
...
@@ -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!'
bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/Zuite_isReportGenerated.xml
deleted
100644 → 0
View file @
ddd3e26c
<?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 @
ddd3e26c
<?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