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
140
Merge Requests
140
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
f5022843
Commit
f5022843
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
e887e8ef
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 @
f5022843
...
...
@@ -80,7 +80,6 @@ class TestRunMyDocsConfiguratorWorkflowMixin(TestLiveConfiguratorWorkflowMixin):
stepStartConfigurationInstallation
stepTic
stepCheckSystemPreferenceAfterInstallation
stepCheckUserPreferenceAfterInstallation
stepCheckKnowledgePadRole
"""
...
...
@@ -190,19 +189,6 @@ class TestRunMyDocsConfiguratorWorkflowMixin(TestLiveConfiguratorWorkflowMixin):
self
.
assertEqual
(
system_preference
.
getPreferredDocumentConversionServerUrl
(),
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
):
""" Check if Knowledge Pad is configured correctly """
self
.
portal
.
ERP5Site_createDefaultKnowledgePadListForUser
()
...
...
bt5/erp5_configurator_ung/TestTemplateItem/portal_components/test.erp5.testUNGConfigurationWorkflow.py
View file @
f5022843
...
...
@@ -98,7 +98,7 @@ class TestUNGConfiguratorWorkflowMixin(TestLiveConfiguratorWorkflowMixin):
stepTic
stepCheckUNGWebSiteAfterInstallation
stepCheckSystemPreferenceAfterInstallation
stepCheck
User
PreferenceAfterInstallation
stepCheck
Site
PreferenceAfterInstallation
stepCheckWebSiteRoles
stepCheckKnowledgePadRole
stepCheckCreateNewEvent
...
...
@@ -216,18 +216,8 @@ class TestUNGConfiguratorWorkflowMixin(TestLiveConfiguratorWorkflowMixin):
self
.
assertEqual
(
system_preference
.
getPreferredDocumentConversionServerUrl
(),
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
stepCheckSitePreferenceAfterInstallation
(
self
,
sequence
=
None
,
sequence_list
=
None
,
**
kw
):
""" Check Site Preference"""
preference
=
self
.
portal
.
portal_preferences
.
ung_preference
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