mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Set the tempdir on the shell mock object so that it is json serializable
This commit is contained in:
parent
32eef49062
commit
8c7bd8beb4
1 changed files with 1 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue