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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
erp5
Commits
9c7b83b6
Commit
9c7b83b6
authored
May 12, 2017
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configurator test: update tests now that we no longer pre-create preferences
parent
f62e6651
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
27 deletions
+3
-27
bt5/erp5_configurator_run_my_doc/TestTemplateItem/portal_components/test.erp5.testRunMyDocConfigurationWorkflow.py
...components/test.erp5.testRunMyDocConfigurationWorkflow.py
+0
-14
bt5/erp5_configurator_ung/TestTemplateItem/portal_components/test.erp5.testUNGConfigurationWorkflow.py
...rtal_components/test.erp5.testUNGConfigurationWorkflow.py
+3
-13
No files found.
bt5/erp5_configurator_run_my_doc/TestTemplateItem/portal_components/test.erp5.testRunMyDocConfigurationWorkflow.py
View file @
9c7b83b6
...
@@ -80,7 +80,6 @@ class TestRunMyDocsConfiguratorWorkflowMixin(TestLiveConfiguratorWorkflowMixin):
...
@@ -80,7 +80,6 @@ class TestRunMyDocsConfiguratorWorkflowMixin(TestLiveConfiguratorWorkflowMixin):
stepStartConfigurationInstallation
stepStartConfigurationInstallation
stepTic
stepTic
stepCheckSystemPreferenceAfterInstallation
stepCheckSystemPreferenceAfterInstallation
stepCheckUserPreferenceAfterInstallation
stepCheckKnowledgePadRole
stepCheckKnowledgePadRole
"""
"""
...
@@ -190,19 +189,6 @@ class TestRunMyDocsConfiguratorWorkflowMixin(TestLiveConfiguratorWorkflowMixin):
...
@@ -190,19 +189,6 @@ class TestRunMyDocsConfiguratorWorkflowMixin(TestLiveConfiguratorWorkflowMixin):
self
.
assertEqual
(
system_preference
.
getPreferredDocumentConversionServerUrl
(),
self
.
assertEqual
(
system_preference
.
getPreferredDocumentConversionServerUrl
(),
conversion_dict
[
'url'
])
conversion_dict
[
'url'
])
def
stepCheckUserPreferenceAfterInstallation
(
self
,
sequence
=
None
,
sequence_list
=
None
,
**
kw
):
""" Check System Preference"""
portal_catalog
=
self
.
portal
.
portal_catalog
preference
=
portal_catalog
.
getResultValue
(
portal_type
=
"Preference"
,
title
=
'Preference for Person Assignor'
)
self
.
assertEqual
(
preference
.
getPreferenceState
(),
"enabled"
)
preference
=
portal_catalog
.
getResultValue
(
portal_type
=
"Preference"
,
title
=
'Preference for Person Assignee'
)
self
.
assertEqual
(
preference
.
getPreferenceState
(),
"enabled"
)
preference
=
portal_catalog
.
getResultValue
(
portal_type
=
"Preference"
,
title
=
'Preference for Person Creator'
)
self
.
assertEqual
(
preference
.
getPreferenceState
(),
"enabled"
)
def
_stepCheckKnowledgePadRole
(
self
):
def
_stepCheckKnowledgePadRole
(
self
):
""" Check if Knowledge Pad is configured correctly """
""" Check if Knowledge Pad is configured correctly """
self
.
portal
.
ERP5Site_createDefaultKnowledgePadListForUser
()
self
.
portal
.
ERP5Site_createDefaultKnowledgePadListForUser
()
...
...
bt5/erp5_configurator_ung/TestTemplateItem/portal_components/test.erp5.testUNGConfigurationWorkflow.py
View file @
9c7b83b6
...
@@ -98,7 +98,7 @@ class TestUNGConfiguratorWorkflowMixin(TestLiveConfiguratorWorkflowMixin):
...
@@ -98,7 +98,7 @@ class TestUNGConfiguratorWorkflowMixin(TestLiveConfiguratorWorkflowMixin):
stepTic
stepTic
stepCheckUNGWebSiteAfterInstallation
stepCheckUNGWebSiteAfterInstallation
stepCheckSystemPreferenceAfterInstallation
stepCheckSystemPreferenceAfterInstallation
stepCheck
User
PreferenceAfterInstallation
stepCheck
Site
PreferenceAfterInstallation
stepCheckWebSiteRoles
stepCheckWebSiteRoles
stepCheckKnowledgePadRole
stepCheckKnowledgePadRole
stepCheckCreateNewEvent
stepCheckCreateNewEvent
...
@@ -216,18 +216,8 @@ class TestUNGConfiguratorWorkflowMixin(TestLiveConfiguratorWorkflowMixin):
...
@@ -216,18 +216,8 @@ class TestUNGConfiguratorWorkflowMixin(TestLiveConfiguratorWorkflowMixin):
self
.
assertEqual
(
system_preference
.
getPreferredDocumentConversionServerUrl
(),
self
.
assertEqual
(
system_preference
.
getPreferredDocumentConversionServerUrl
(),
conversion_dict
[
'url'
])
conversion_dict
[
'url'
])
def
stepCheckUserPreferenceAfterInstallation
(
self
,
sequence
=
None
,
sequence_list
=
None
,
**
kw
):
def
stepCheckSitePreferenceAfterInstallation
(
self
,
sequence
=
None
,
sequence_list
=
None
,
**
kw
):
""" Check System Preference"""
""" Check Site Preference"""
portal_catalog
=
self
.
portal
.
portal_catalog
preference
=
portal_catalog
.
getResultValue
(
portal_type
=
"Preference"
,
title
=
'Preference for Person Assignor'
)
self
.
assertEqual
(
preference
.
getPreferenceState
(),
"enabled"
)
preference
=
portal_catalog
.
getResultValue
(
portal_type
=
"Preference"
,
title
=
'Preference for Person Assignee'
)
self
.
assertEqual
(
preference
.
getPreferenceState
(),
"enabled"
)
preference
=
portal_catalog
.
getResultValue
(
portal_type
=
"Preference"
,
title
=
'Preference for Person Creator'
)
self
.
assertEqual
(
preference
.
getPreferenceState
(),
"enabled"
)
preference
=
self
.
portal
.
portal_preferences
.
ung_preference
preference
=
self
.
portal
.
portal_preferences
.
ung_preference
self
.
assertEqual
(
preference
.
getPreferenceState
(),
"global"
)
self
.
assertEqual
(
preference
.
getPreferenceState
(),
"global"
)
...
...
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