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
Bryan Kaperick
erp5
Commits
99a5d9a5
Commit
99a5d9a5
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
2bd78d85
Changes
1
Show 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 @
99a5d9a5
...
@@ -7493,6 +7493,66 @@ class TestDocumentTemplateItem(BusinessTemplateMixin):
...
@@ -7493,6 +7493,66 @@ class TestDocumentTemplateItem(BusinessTemplateMixin):
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
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
):
class
TestConstraintTemplateItem
(
TestDocumentTemplateItem
):
document_title
=
'UnitTest'
document_title
=
'UnitTest'
document_data
=
'
\
n
class UnitTest:
\
n
"""
\
n
Fake constraint for unit test
\
n
\
document_data
=
'
\
n
class UnitTest:
\
n
"""
\
n
Fake constraint for unit test
\
n
\
...
@@ -7634,6 +7694,9 @@ TestConstraintTemplateItem.test_BusinessTemplateWithZodbDocumentNonExistingBefor
...
@@ -7634,6 +7694,9 @@ TestConstraintTemplateItem.test_BusinessTemplateWithZodbDocumentNonExistingBefor
TestConstraintTemplateItem
.
test_BusinessTemplateWithZodbDocumentMigrated
=
\
TestConstraintTemplateItem
.
test_BusinessTemplateWithZodbDocumentMigrated
=
\
skip
(
'Not implemented yet'
)(
TestConstraintTemplateItem
.
test_BusinessTemplateWithZodbDocumentMigrated
)
skip
(
'Not implemented yet'
)(
TestConstraintTemplateItem
.
test_BusinessTemplateWithZodbDocumentMigrated
)
TestConstraintTemplateItem
.
test_BusinessTemplateUpgradeDocumentFromFilesystemToZodb
=
\
skip
(
'Not implemented yet'
)(
TestConstraintTemplateItem
.
test_BusinessTemplateUpgradeDocumentFromFilesystemToZodb
)
def
test_suite
():
def
test_suite
():
suite
=
unittest
.
TestSuite
()
suite
=
unittest
.
TestSuite
()
suite
.
addTest
(
unittest
.
makeSuite
(
TestBusinessTemplate
))
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