From 14f8beb61bb9956b14b7172cb10aa09c3193bd4a Mon Sep 17 00:00:00 2001 From: Rajath Agasthya Date: Fri, 30 Jun 2017 09:59:34 -0700 Subject: [PATCH] Fix erroneous line in command hook test Change-Id: Ib783800018444df7204f5971c96c7bd83079bd41 --- cliff/tests/test_command_hooks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cliff/tests/test_command_hooks.py b/cliff/tests/test_command_hooks.py index 0d9c8b06..d4af1032 100644 --- a/cliff/tests/test_command_hooks.py +++ b/cliff/tests/test_command_hooks.py @@ -27,7 +27,7 @@ def make_app(**kwargs): cmd = mock.MagicMock(spec=command.Command) command_inst = mock.MagicMock(spec=command.Command) command_inst.run.return_value = 0 - command.return_value = command_inst + cmd.return_value = command_inst cmd_mgr.add_command('mock', cmd) # Register a command that fails