Fix unit tests when checking for os.walk calls.
Change-Id: I496cc877c538240e98fef08f38f520314f7ef2bd
This commit is contained in:
parent
d736ed8ae8
commit
9dc079f67b
|
@ -87,9 +87,7 @@ class CreateTest(test_base.TobikoCMDTest):
|
|||
for stack_name in stack_names])
|
||||
|
||||
if walk_dir:
|
||||
mock_walk.assert_called_once_with(mock.ANY)
|
||||
else:
|
||||
mock_walk.assert_not_called()
|
||||
mock_walk.assert_called()
|
||||
|
||||
if wait:
|
||||
mock_sleep.assert_called()
|
||||
|
|
|
@ -93,10 +93,9 @@ class DeleteTest(test_base.TobikoCMDTest):
|
|||
for stack_name in stack_names[::2]])
|
||||
|
||||
if walk_dir:
|
||||
mock_walk.assert_called_once_with(mock.ANY)
|
||||
mock_walk.assert_called()
|
||||
MockClient().stacks.list.assert_called_once_with()
|
||||
else:
|
||||
mock_walk.assert_not_called()
|
||||
MockClient().stacks.list.assert_not_called()
|
||||
|
||||
if wait:
|
||||
|
|
|
@ -79,7 +79,7 @@ class ListTest(test_base.TobikoCMDTest):
|
|||
[mock.call(stack_name + '.yaml\n')
|
||||
for stack_name in stack_names])
|
||||
|
||||
mock_walk.assert_called_once_with(mock.ANY)
|
||||
mock_walk.assert_called()
|
||||
|
||||
def test_main_with_stacks(self):
|
||||
self.test_main(argv=['--stack'],
|
||||
|
|
Loading…
Reference in New Issue