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
Ivan Tyagov
slapos.core
Commits
48717b24
Commit
48717b24
authored
Nov 15, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Workaround more magic of setters.
parent
cc107358
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
master/bt5/slapos_cloud/TestTemplateItem/testSlapOSCloudConstraint.py
...lapos_cloud/TestTemplateItem/testSlapOSCloudConstraint.py
+8
-1
master/bt5/slapos_cloud/bt/revision
master/bt5/slapos_cloud/bt/revision
+1
-1
No files found.
master/bt5/slapos_cloud/TestTemplateItem/testSlapOSCloudConstraint.py
View file @
48717b24
...
@@ -25,7 +25,14 @@ class TestSlapOSConstraintMixin(testSlapOSMixin):
...
@@ -25,7 +25,14 @@ class TestSlapOSConstraintMixin(testSlapOSMixin):
# required
# required
delattr
(
obj
,
property_id
)
try
:
# try to drop property from object for ones, where doing
# edit(property=None) does not set None, but ('None',)...
delattr
(
obj
,
property_id
)
except
AttributeError
:
# ...but in case of magic ones (reference->default_reference)
# use setter to set it to None
obj
.
edit
(
**
{
property_id
:
None
})
self
.
assertTrue
(
consistency_message
in
self
.
getMessageList
(
obj
))
self
.
assertTrue
(
consistency_message
in
self
.
getMessageList
(
obj
))
if
empty_string
:
if
empty_string
:
...
...
master/bt5/slapos_cloud/bt/revision
View file @
48717b24
241
242
\ 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