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
Léo-Paul Géneau
slapos.core
Commits
80bfb0fe
Commit
80bfb0fe
authored
Sep 27, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dropped unused constraints.
parent
a62e1d68
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
82 deletions
+1
-82
master/bt5/vifib_erp5/TestTemplateItem/testVifibConstraint.py
...er/bt5/vifib_erp5/TestTemplateItem/testVifibConstraint.py
+0
-81
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 @
80bfb0fe
...
@@ -437,87 +437,6 @@ class TestVifibPurchasePackingListLineConstraint(testVifibMixin):
...
@@ -437,87 +437,6 @@ class TestVifibPurchasePackingListLineConstraint(testVifibMixin):
self
.
assertFalse
(
consistency_message
in
getMessageList
(
line
))
self
.
assertFalse
(
consistency_message
in
getMessageList
(
line
))
class
TestVifibSoftwareReleaseConstraint
(
testVifibMixin
):
class
TestVifibSoftwareReleaseConstraint
(
testVifibMixin
):
def
test_aggregate
(
self
):
consistency_message_existence
=
'One Software Product must be defined'
consistency_message_state
=
'Software Product must be validated'
software_release
=
self
.
portal
.
software_release_module
.
newContent
(
portal_type
=
'Software Release'
)
software_release
.
publish
()
self
.
assertTrue
(
consistency_message_existence
in
getMessageList
(
software_release
))
software_product
=
self
.
portal
.
software_product_module
.
newContent
(
portal_type
=
'Software Product'
)
software_release
.
setAggregate
(
software_product
.
getRelativeUrl
())
self
.
assertFalse
(
consistency_message_existence
in
getMessageList
(
software_release
))
software_product_2
=
self
.
portal
.
software_product_module
.
newContent
(
portal_type
=
'Software Product'
)
software_release
.
setAggregateList
([
software_product
.
getRelativeUrl
(),
software_product_2
.
getRelativeUrl
()])
self
.
assertTrue
(
consistency_message_existence
in
getMessageList
(
software_release
))
software_release
.
setAggregate
(
software_product
.
getRelativeUrl
())
self
.
assertTrue
(
consistency_message_state
in
getMessageList
(
software_release
))
software_product
.
validate
()
self
.
assertFalse
(
consistency_message_state
in
getMessageList
(
software_release
))
def
test_contributor
(
self
):
consistency_message_existence
=
'One Contributor must be defined'
consistency_message_state
=
'Contributor must be validated'
software_release
=
self
.
portal
.
software_release_module
.
newContent
(
portal_type
=
'Software Release'
)
self
.
assertTrue
(
consistency_message_existence
in
getMessageList
(
software_release
))
person
=
self
.
portal
.
person_module
.
newContent
(
portal_type
=
'Person'
)
#XXX: Conflict: contributor is category and dublin core property
#software_release.setContributor(person.getRelativeUrl())
software_release
.
setContributorValue
(
person
)
self
.
assertFalse
(
consistency_message_existence
in
getMessageList
(
software_release
))
person_2
=
self
.
portal
.
person_module
.
newContent
(
portal_type
=
'Person'
)
#XXX: Conflict: contributor is category and dublin core property
#software_release.setContributorList([person.getRelativeUrl(),
# person_2.getRelativeUrl()])
software_release
.
setContributorValueList
([
person
,
person_2
])
self
.
assertTrue
(
consistency_message_existence
in
getMessageList
(
software_release
))
#XXX: Conflict: contributor is category and dublin core property
#software_release.setContributor(person.getRelativeUrl())
software_release
.
setContributorValue
(
person
)
self
.
assertTrue
(
consistency_message_state
in
getMessageList
(
software_release
))
person
.
validate
()
self
.
assertFalse
(
consistency_message_state
in
getMessageList
(
software_release
))
def
test_reference
(
self
):
def
test_reference
(
self
):
consistency_message
=
'Reference must be defined'
consistency_message
=
'Reference must be defined'
...
...
master/bt5/vifib_erp5/bt/revision
View file @
80bfb0fe
475
476
\ 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