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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
3e67c274
Commit
3e67c274
authored
Aug 16, 2011
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge code into single script.
This make code of bt5 a bit smaller
parent
f5e15283
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
88 deletions
+12
-88
bt5/erp5_configurator_standard_ui_test/ExtensionTemplateItem/ConfiguratorTestUtils.py
...rd_ui_test/ExtensionTemplateItem/ConfiguratorTestUtils.py
+3
-3
bt5/erp5_configurator_standard_ui_test/SkinTemplateItem/portal_skins/erp5_configurator_standard_ui_test/Zuite_getConfiguratorFilenameLocation.xml
...tandard_ui_test/Zuite_getConfiguratorFilenameLocation.xml
+9
-57
bt5/erp5_configurator_standard_ui_test/SkinTemplateItem/portal_skins/erp5_configurator_standard_ui_test/Zuite_getConfiguratorTestDocumentsHome.xml
...andard_ui_test/Zuite_getConfiguratorTestDocumentsHome.xml
+0
-28
No files found.
bt5/erp5_configurator_standard_ui_test/ExtensionTemplateItem/ConfiguratorTestUtils.py
View file @
3e67c274
...
@@ -31,10 +31,10 @@
...
@@ -31,10 +31,10 @@
import
os
import
os
from
Products.ERP5Configurator
import
tests
from
Products.ERP5Configurator
import
tests
def
Zuite_getTestDocument
sHome
(
self
):
def
Zuite_getTestDocument
Path
(
self
,
filename
):
"""
"""
Get t
est documents folder as string
.
Get t
he full path of the document to be used into the test
.
"""
"""
return
os
.
path
.
join
(
return
os
.
path
.
join
(
os
.
path
.
abspath
(
os
.
path
.
abspath
(
os
.
path
.
dirname
(
tests
.
__file__
)),
'test_data
'
)
os
.
path
.
dirname
(
tests
.
__file__
)),
'test_data
/%s'
%
filename
)
bt5/erp5_configurator_standard_ui_test/SkinTemplateItem/portal_skins/erp5_configurator_standard_ui_test/Zuite_getConfiguratorFilenameLocation.xml
View file @
3e67c274
...
@@ -2,74 +2,26 @@
...
@@ -2,74 +2,26 @@
<ZopeData>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<pickle>
<global
name=
"
PythonScript"
module=
"Products.PythonScripts.PythonScript
"
/>
<global
name=
"
ExternalMethod"
module=
"Products.ExternalMethod.ExternalMethod
"
/>
</pickle>
</pickle>
<pickle>
<pickle>
<dictionary>
<dictionary>
<item>
<item>
<key>
<string>
Script_magic
</string>
</key>
<key>
<string>
_function
</string>
</key>
<value>
<
int>
3
</int
>
</value>
<value>
<
string>
Zuite_getTestDocumentsHome
</string
>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<key>
<string>
_module
</string>
</key>
<value>
<value>
<string>
ConfiguratorTestUtils
</string>
</value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_body
</string>
</key>
<value>
<string>
test_documents_home = context.Zuite_getConfiguratorTestDocumentsHome()\n
return \'%s/%s\' %(test_documents_home, filename)\n
</string>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
filename
</string>
</value>
</item>
<item>
<key>
<string>
_proxy_roles
</string>
</key>
<value>
<tuple>
<string>
Manager
</string>
</tuple>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
<value>
<string>
Zuite_getConfiguratorFilenameLocation
</string>
</value>
<value>
<string>
Zuite_getConfiguratorFilenameLocation
</string>
</value>
</item>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
</record>
</record>
...
...
bt5/erp5_configurator_standard_ui_test/SkinTemplateItem/portal_skins/erp5_configurator_standard_ui_test/Zuite_getConfiguratorTestDocumentsHome.xml
deleted
100644 → 0
View file @
f5e15283
<?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>
Zuite_getTestDocumentsHome
</string>
</value>
</item>
<item>
<key>
<string>
_module
</string>
</key>
<value>
<string>
ConfiguratorTestUtils
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
Zuite_getConfiguratorTestDocumentsHome
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></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