Code Review
/
releng.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
bugfix: fail to generate APIs document
[releng.git]
/
utils
/
test
/
testapi
/
opnfv_testapi
/
tests
/
unit
/
resources
/
test_scenario.py
diff --git
a/utils/test/testapi/opnfv_testapi/tests/unit/resources/test_scenario.py
b/utils/test/testapi/opnfv_testapi/tests/unit/resources/test_scenario.py
index
f9bb58c
..
50a8c8d
100644
(file)
--- a/
utils/test/testapi/opnfv_testapi/tests/unit/resources/test_scenario.py
+++ b/
utils/test/testapi/opnfv_testapi/tests/unit/resources/test_scenario.py
@@
-297,8
+297,9
@@
class TestScenarioUpdate(TestScenarioBase):
@update_partial('_update', '_success')
def test_changeOwner(self, scenario):
new_owner = 'new_owner'
@update_partial('_update', '_success')
def test_changeOwner(self, scenario):
new_owner = 'new_owner'
+ update = models.ScenarioChangeOwnerRequest(new_owner).format()
scenario['installers'][0]['versions'][0]['owner'] = new_owner
scenario['installers'][0]['versions'][0]['owner'] = new_owner
- return
new_owner
, scenario
+ return
update
, scenario
def _add(self, update_req, new_scenario):
return self.post_direct_url(self.update_url, update_req)
def _add(self, update_req, new_scenario):
return self.post_direct_url(self.update_url, update_req)