@@ -107,7 +107,7 @@ def test_must_copytree(self, patched_copy2, patched_os, patched_path):
107107 osutils .copytree (source_path , destination_path )
108108
109109 patched_os .path .join .assert_called ()
110- patched_copy2 .assert_called_with (source_path , destination_path )
110+ patched_copy2 .assert_called_with (source_path , destination_path , follow_symlinks = False )
111111
112112 @patch ("samcli.lib.utils.osutils.Path" )
113113 @patch ("samcli.lib.utils.osutils.os" )
@@ -127,7 +127,7 @@ def test_copytree_throws_oserror_path_exists(self, patched_copy2, patched_os, pa
127127 osutils .copytree (source_path , destination_path )
128128
129129 patched_os .path .join .assert_called ()
130- patched_copy2 .assert_called_with (source_path , destination_path )
130+ patched_copy2 .assert_called_with (source_path , destination_path , follow_symlinks = False )
131131
132132 @patch ("samcli.lib.utils.osutils.create_symlink_or_copy" )
133133 @patch ("samcli.lib.utils.osutils.Path" )
@@ -149,7 +149,7 @@ def test_copytree_symlink_copy_error_handling(
149149 osutils .copytree (source_path , destination_path )
150150
151151 patched_os .path .join .assert_called ()
152- patched_copy2 .assert_called_with (source_path , destination_path )
152+ patched_copy2 .assert_called_with (source_path , destination_path , follow_symlinks = False )
153153 patched_create_symlink_or_copy .assert_called_with (source_path , destination_path )
154154
155155
0 commit comments