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
Yusei Tahara
erp5
Commits
b10ee0b4
Commit
b10ee0b4
authored
Aug 28, 2020
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZODB Components: erp5_archive: Migrate testArchive.
parent
936a8ee4
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
128 additions
and
4 deletions
+128
-4
bt5/erp5_archive/TestTemplateItem/portal_components/test.erp5.testArchive.py
...stTemplateItem/portal_components/test.erp5.testArchive.py
+5
-4
bt5/erp5_archive/TestTemplateItem/portal_components/test.erp5.testArchive.xml
...tTemplateItem/portal_components/test.erp5.testArchive.xml
+110
-0
bt5/erp5_archive/bt/template_test_id_list
bt5/erp5_archive/bt/template_test_id_list
+1
-0
bt5/erp5_archive/bt/test_dependency_list
bt5/erp5_archive/bt/test_dependency_list
+12
-0
No files found.
product/ERP5Catalog/tests/
testArchive.py
→
bt5/erp5_archive/TestTemplateItem/portal_components/test.erp5.
testArchive.py
View file @
b10ee0b4
...
@@ -73,7 +73,7 @@ class TestArchive(InventoryAPITestCase):
...
@@ -73,7 +73,7 @@ class TestArchive(InventoryAPITestCase):
self
.
getPortal
().
portal_activities
.
manageClearActivities
()
self
.
getPortal
().
portal_activities
.
manageClearActivities
()
self
.
tic
()
self
.
tic
()
def
login
(
self
):
def
login
(
self
,
*
args
,
**
kw
):
uf
=
self
.
getPortal
().
acl_users
uf
=
self
.
getPortal
().
acl_users
uf
.
_doAddUser
(
'seb'
,
''
,
[
'Manager'
],
[])
uf
.
_doAddUser
(
'seb'
,
''
,
[
'Manager'
],
[])
user
=
uf
.
getUserById
(
'seb'
).
__of__
(
uf
)
user
=
uf
.
getUserById
(
'seb'
).
__of__
(
uf
)
...
@@ -101,7 +101,7 @@ class TestArchive(InventoryAPITestCase):
...
@@ -101,7 +101,7 @@ class TestArchive(InventoryAPITestCase):
# zsql method will look at preference and use the one
# zsql method will look at preference and use the one
# defined by the archive
# defined by the archive
result
=
zsql_method
(
connection_id
=
connection_id
)
result
=
zsql_method
(
connection_id
=
connection_id
)
path_list
=
map
(
lambda
x
:
x
[
'path'
],
result
)
path_list
=
[
x
[
'path'
]
for
x
in
result
]
return
path_list
return
path_list
def
checkRelativeUrlInSQLPathList
(
self
,
url_list
,
connection_id
=
None
):
def
checkRelativeUrlInSQLPathList
(
self
,
url_list
,
connection_id
=
None
):
...
@@ -121,7 +121,7 @@ class TestArchive(InventoryAPITestCase):
...
@@ -121,7 +121,7 @@ class TestArchive(InventoryAPITestCase):
self
.
assertTrue
(
path
not
in
path_list
)
self
.
assertTrue
(
path
not
in
path_list
)
@
reindex
@
reindex
def
_makeInventory
(
self
,
date
):
def
_makeInventory
(
self
,
date
):
# pylint: disable=arguments-differ
"""
"""
Create inventory, use to check if they goes to the right catalog
Create inventory, use to check if they goes to the right catalog
"""
"""
...
@@ -347,7 +347,8 @@ class TestArchive(InventoryAPITestCase):
...
@@ -347,7 +347,8 @@ class TestArchive(InventoryAPITestCase):
def
test_MaximumRecursionDepthExceededWithComplexSecurity
(
self
):
def
test_MaximumRecursionDepthExceededWithComplexSecurity
(
self
):
skin
=
self
.
portal
.
portal_skins
.
custom
skin
=
self
.
portal
.
portal_skins
.
custom
colour
=
self
.
portal
.
portal_categories
.
colour
colour
=
self
.
portal
.
portal_categories
.
colour
colour
.
hasObject
(
'green'
)
or
colour
.
newContent
(
'green'
)
if
not
colour
.
hasObject
(
'green'
):
colour
.
newContent
(
'green'
)
login
=
str
(
time
.
time
())
login
=
str
(
time
.
time
())
script_id
=
[
"ERP5Type_getSecurityCategoryMapping"
,
script_id
=
[
"ERP5Type_getSecurityCategoryMapping"
,
"ERP5Type_getSecurityCategory"
]
"ERP5Type_getSecurityCategory"
]
...
...
bt5/erp5_archive/TestTemplateItem/portal_components/test.erp5.testArchive.xml
0 → 100644
View file @
b10ee0b4
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Test Component"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
testArchive
</string>
</value>
</item>
<item>
<key>
<string>
default_source_reference
</string>
</key>
<value>
<string>
Products.ERP5Catalog.tests.testArchive
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
test.erp5.testArchive
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Test Component
</string>
</value>
</item>
<item>
<key>
<string>
sid
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
text_content_error_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
text_content_warning_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
erp5
</string>
</value>
</item>
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
component_validation_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.Workflow"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
validate
</string>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
validated
</string>
</value>
</item>
</dictionary>
</list>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_archive/bt/template_test_id_list
0 → 100644
View file @
b10ee0b4
test.erp5.testArchive
\ No newline at end of file
bt5/erp5_archive/bt/test_dependency_list
0 → 100644
View file @
b10ee0b4
erp5_full_text_mroonga_catalog
erp5_core_proxy_field_legacy
erp5_base
erp5_pdm
erp5_dummy_movement
erp5_simulation
erp5_trade
erp5_apparel
erp5_project
erp5_configurator_standard_trade_template
erp5_simulation_test
erp5_stock_cache
\ No newline at end of file
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