correctly deals with non serializable type

combine_vars shoudl really be data types, but some just get in
in test, add dict to mock and avoid combine_vars using object
This commit is contained in:
Brian Coca 2016-01-18 15:08:07 -05:00
parent 83069a38d5
commit 27f4730c29
2 changed files with 10 additions and 2 deletions

View file

@ -196,6 +196,7 @@ class TestStrategyBase(unittest.TestCase):
mock_inventory.get_host.side_effect = _get_host
mock_inventory.get_group.side_effect = _get_group
mock_inventory.clear_pattern_cache.return_value = None
mock_inventory.get_host_vars.return_value = {}
mock_var_mgr = MagicMock()
mock_var_mgr.set_host_variable.return_value = None