Fixed Controller unit tests and UnboundlocalError 53/34653/4
authorYing Ruoyu <ruoyu.ying@intel.com>
Thu, 8 Mar 2018 11:14:39 +0000 (19:14 +0800)
committerYing Ruoyu <ruoyu.ying@intel.com>
Tue, 13 Mar 2018 09:15:21 +0000 (17:15 +0800)
commitc36df545bd63728cbbc6117218c1a9e40c0b0dbe
treee5f9f58a1eb5d143a7e1034ee0148c99c637f8f3
parent84dca64425db27fe9b2850a2ca20fdff09ac54d4
Fixed Controller unit tests and UnboundlocalError

Fix parse_optimization function in translator.py
Defined and initialized variable function in the scope
Fix unit test for parse_optimization function
Add condition variable in function row_update in api.MockAPI

Change-Id: I2f08bcfc001e9ccb22a7315d243006a1995edc81
Issue-ID: OPTFRA-69
Signed-off-by: Ying Ruoyu <ruoyu.ying@intel.com>
conductor/conductor/controller/translator.py
conductor/conductor/tests/unit/controller/test_rpc.py
conductor/conductor/tests/unit/controller/test_translator.py
conductor/conductor/tests/unit/controller/test_translator_svc.py