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
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
Mukul
erp5
Commits
8d124bba
Commit
8d124bba
authored
Jun 26, 2013
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZODB Components: Add unit test for upgrade of bt5 from filesystem to ZODB.
parent
680ce64d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
63 additions
and
0 deletions
+63
-0
product/ERP5/tests/testBusinessTemplate.py
product/ERP5/tests/testBusinessTemplate.py
+63
-0
No files found.
product/ERP5/tests/testBusinessTemplate.py
View file @
8d124bba
...
...
@@ -7415,6 +7415,66 @@ class TestDocumentTemplateItem(BusinessTemplateMixin):
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
def
stepUseCurrentBusinessTemplateForInstall
(
self
,
sequence
=
None
,
**
kw
):
sequence
.
edit
(
import_bt
=
sequence
.
get
(
'current_bt'
))
def
test_BusinessTemplateUpgradeDocumentFromFilesystemToZodb
(
self
):
sequence_list
=
SequenceList
()
sequence_string
=
"""
CreateDocument
CreateNewBusinessTemplate
UseExportBusinessTemplate
AddDocumentToBusinessTemplate
CheckModifiedBuildingState
CheckNotInstalledInstallationState
BuildBusinessTemplate
CheckBuiltBuildingState
CheckNotInstalledInstallationState
CheckObjectPropertiesInBusinessTemplate
UseCurrentBusinessTemplateForInstall
InstallWithoutForceBusinessTemplate
Tic
CheckInstalledInstallationState
CheckBuiltBuildingState
CheckSkinsLayers
CheckDocumentExists
CopyAndMigrateDocumentBusinessTemplate
CheckDocumentMigration
BuildBusinessTemplate
CheckBuiltBuildingState
CheckNotInstalledInstallationState
SaveBusinessTemplate
RemoveBusinessTemplate
RemoveZodbDocument
CheckDocumentExists
CheckZodbDocumentRemoved
ImportBusinessTemplate
UseImportBusinessTemplate
CheckBuiltBuildingState
CheckNotInstalledInstallationState
InstallWithoutForceBusinessTemplate
Tic
CheckInstalledInstallationState
CheckBuiltBuildingState
CheckSkinsLayers
CheckDocumentRemoved
CheckZodbDocumentExistsAndValidated
UseExportBusinessTemplate
CheckReplacedInstallationState
UseImportBusinessTemplate
UninstallBusinessTemplate
RemoveAllTrashBins
CheckBuiltBuildingState
CheckNotInstalledInstallationState
CheckZodbDocumentRemoved
"""
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
class
TestConstraintTemplateItem
(
TestDocumentTemplateItem
):
document_title
=
'UnitTest'
document_data
=
'
\
n
class UnitTest:
\
n
"""
\
n
Fake constraint for unit test
\
n
\
...
...
@@ -7556,6 +7616,9 @@ TestConstraintTemplateItem.test_BusinessTemplateWithZodbDocumentNonExistingBefor
TestConstraintTemplateItem
.
test_BusinessTemplateWithZodbDocumentMigrated
=
\
skip
(
'Not implemented yet'
)(
TestConstraintTemplateItem
.
test_BusinessTemplateWithZodbDocumentMigrated
)
TestConstraintTemplateItem
.
test_BusinessTemplateUpgradeDocumentFromFilesystemToZodb
=
\
skip
(
'Not implemented yet'
)(
TestConstraintTemplateItem
.
test_BusinessTemplateUpgradeDocumentFromFilesystemToZodb
)
def
test_suite
():
suite
=
unittest
.
TestSuite
()
suite
.
addTest
(
unittest
.
makeSuite
(
TestBusinessTemplate
))
...
...
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