Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
Eric Zheng
slapos.core
Commits
91fdaaeb
Commit
91fdaaeb
authored
Aug 24, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Email does not have to be unique anymore.
parent
ec9b9872
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
34 deletions
+1
-34
master/bt5/vifib_erp5/TestTemplateItem/testVifibConstraint.py
...er/bt5/vifib_erp5/TestTemplateItem/testVifibConstraint.py
+0
-33
master/bt5/vifib_erp5/bt/revision
master/bt5/vifib_erp5/bt/revision
+1
-1
No files found.
master/bt5/vifib_erp5/TestTemplateItem/testVifibConstraint.py
View file @
91fdaaeb
...
@@ -144,39 +144,6 @@ class TestVifibEmailConstraint(testVifibMixin):
...
@@ -144,39 +144,6 @@ class TestVifibEmailConstraint(testVifibMixin):
self
.
assertFalse
(
consistency_message
in
getMessageList
(
email
))
self
.
assertFalse
(
consistency_message
in
getMessageList
(
email
))
def
test_url_string_unique
(
self
):
url_string
=
rndstr
()
url_string_2
=
rndstr
()
email
=
self
.
portal
.
person_module
.
newContent
(
portal_type
=
'Person'
).
newContent
(
portal_type
=
'Email'
,
url_string
=
url_string
)
email_2
=
self
.
portal
.
person_module
.
newContent
(
portal_type
=
'Person'
).
newContent
(
portal_type
=
'Email'
,
url_string
=
url_string
)
consistency_message
=
'Email must be unique'
self
.
stepTic
()
self
.
assertTrue
(
consistency_message
in
getMessageList
(
email
))
self
.
assertTrue
(
consistency_message
in
getMessageList
(
email_2
))
email_2
.
setUrlString
(
url_string_2
)
self
.
stepTic
()
self
.
assertFalse
(
consistency_message
in
getMessageList
(
email
))
self
.
assertFalse
(
consistency_message
in
getMessageList
(
email_2
))
def
test_url_string_does_not_conflict_with_credential
(
self
):
url_string
=
rndstr
()
person_email
=
self
.
portal
.
person_module
.
newContent
(
portal_type
=
'Person'
).
newContent
(
portal_type
=
'Email'
,
url_string
=
url_string
)
credential_email
=
self
.
portal
.
credential_update_module
.
newContent
(
portal_type
=
'Credential Update'
).
newContent
(
portal_type
=
'Email'
,
url_string
=
url_string
)
self
.
stepTic
()
self
.
assertFalse
(
'Email must be unique'
in
getMessageList
(
person_email
))
self
.
assertFalse
(
'Email must be unique'
in
getMessageList
(
credential_email
))
class
TestVifibInternalPackingListConstraint
(
testVifibMixin
):
class
TestVifibInternalPackingListConstraint
(
testVifibMixin
):
def
getTitle
(
self
):
def
getTitle
(
self
):
return
"Vifib Internal Packing List Constraint checks"
return
"Vifib Internal Packing List Constraint checks"
...
...
master/bt5/vifib_erp5/bt/revision
View file @
91fdaaeb
446
447
\ No newline at end of file
\ No newline at end of file
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