From 8c7bd8beb4ad7b8a265d8dfd8244a0d04cecac4a Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Mon, 22 Jan 2018 19:13:17 -0800 Subject: [PATCH] Set the tempdir on the shell mock object so that it is json serializable --- test/units/plugins/action/test_action.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/units/plugins/action/test_action.py b/test/units/plugins/action/test_action.py index 987af9e360..1c9ad74ae1 100644 --- a/test/units/plugins/action/test_action.py +++ b/test/units/plugins/action/test_action.py @@ -419,6 +419,7 @@ class TestActionBase(unittest.TestCase): mock_connection.socket_path = None mock_connection._shell.get_remote_filename.return_value = 'copy.py' mock_connection._shell.join_path.side_effect = os.path.join + mock_connection._shell.tempdir = '/var/tmp/mytempdir' # we're using a real play context here play_context = PlayContext()