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
Amer
erp5
Commits
b79a0de5
Commit
b79a0de5
authored
Nov 29, 2016
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: Avoid duplicating test superuser id.
parent
8e27df66
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
product/ERP5/tests/testERP5Credential.py
product/ERP5/tests/testERP5Credential.py
+3
-3
product/ERP5/tests/testTemplate.py
product/ERP5/tests/testTemplate.py
+2
-2
product/ERP5Catalog/tests/testERP5CatalogSecurityUidOptimization.py
...P5Catalog/tests/testERP5CatalogSecurityUidOptimization.py
+1
-1
product/ERP5Form/tests/testPreferences.py
product/ERP5Form/tests/testPreferences.py
+1
-1
No files found.
product/ERP5/tests/testERP5Credential.py
View file @
b79a0de5
...
...
@@ -301,7 +301,7 @@ class TestERP5Credential(ERP5TypeTestCase):
self
.
tic
()
self
.
logout
()
self
.
portal
.
ERP5Site_activeLogin
(
mail_message
.
getReference
())
self
.
login
(
"ERP5TypeTestCase"
)
self
.
login
()
self
.
tic
()
person
=
portal_catalog
.
getResultValue
(
reference
=
reference
,
portal_type
=
"Person"
)
...
...
@@ -807,7 +807,7 @@ class TestERP5Credential(ERP5TypeTestCase):
default_address_city
=
"Campos"
,
default_address_zip_code
=
"28024030"
,
**
kw
)
self
.
login
(
"ERP5TypeTestCase"
)
self
.
login
()
self
.
tic
()
return
result
...
...
@@ -1108,7 +1108,7 @@ class TestERP5Credential(ERP5TypeTestCase):
default_follow_up_uid=credential_request.getUid())
self.logout()
self.portal.ERP5Site_activeLogin(mail_message.getReference())
self.login(
"
ERP5TypeTestCase
"
)
self.login()
self.tic()
person = portal_catalog.getResultValue(reference="
barney
",
portal_type="
Person
")
...
...
product/ERP5/tests/testTemplate.py
View file @
b79a0de5
...
...
@@ -57,7 +57,7 @@ class TestTemplate(ERP5TypeTestCase):
newSecurityManager
(
None
,
user
)
def
afterSetUp
(
self
):
self
.
login
(
'ERP5TypeTestCase'
)
self
.
login
()
portal_preferences
=
self
.
portal
.
portal_preferences
portal_preferences
.
deleteContent
(
list
(
portal_preferences
.
objectIds
()))
self
.
tic
()
...
...
@@ -240,7 +240,7 @@ class TestTemplate(ERP5TypeTestCase):
def
test_TemplateCreatePreferenceWithSystemPreferenceEnabled
(
self
):
# TODO: This test *might* be removed if it is good to trust
# getActivePreference to return only Preference portal type
self
.
login
(
'ERP5TypeTestCase'
)
self
.
login
()
system_preference
=
self
.
portal
.
portal_preferences
.
newContent
(
portal_type
=
'System Preference'
)
system_preference
.
setPriority
(
Priority
.
SITE
)
...
...
product/ERP5Catalog/tests/testERP5CatalogSecurityUidOptimization.py
View file @
b79a0de5
...
...
@@ -181,7 +181,7 @@ CREATE TABLE alternate_roles_and_users (
self
.
assertEqual
([
user2
],
[
o
.
getObject
()
for
o
in
self
.
portal
.
portal_catalog
(
portal_type
=
'Person'
)])
self
.
login
(
'ERP5TypeTestCase'
)
self
.
login
()
self
.
assertSameSet
([
user1
,
user2
],
[
o
.
getObject
()
for
o
in
self
.
portal
.
portal_catalog
(
portal_type
=
'Person'
)])
...
...
product/ERP5Form/tests/testPreferences.py
View file @
b79a0de5
...
...
@@ -392,7 +392,7 @@ class TestPreferences(PropertySheetTestCase):
portal_workflow
.
doActionFor
(
user_b
,
'enable_action'
,
wf_id
=
'preference_workflow'
)
self
.
login
(
'ERP5TypeTestCase'
)
self
.
login
()
script
=
createZODBPythonScript
(
self
.
portal
.
portal_skins
.
custom
,
'PreferenceTool_testPreferencesProxyRole'
,
''
,
...
...
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