@@ -107,7 +107,7 @@ def test_must_copytree(self, patched_copy2, patched_os, patched_path):
107
107
osutils .copytree (source_path , destination_path )
108
108
109
109
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 )
111
111
112
112
@patch ("samcli.lib.utils.osutils.Path" )
113
113
@patch ("samcli.lib.utils.osutils.os" )
@@ -127,7 +127,7 @@ def test_copytree_throws_oserror_path_exists(self, patched_copy2, patched_os, pa
127
127
osutils .copytree (source_path , destination_path )
128
128
129
129
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 )
131
131
132
132
@patch ("samcli.lib.utils.osutils.create_symlink_or_copy" )
133
133
@patch ("samcli.lib.utils.osutils.Path" )
@@ -149,7 +149,7 @@ def test_copytree_symlink_copy_error_handling(
149
149
osutils .copytree (source_path , destination_path )
150
150
151
151
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 )
153
153
patched_create_symlink_or_copy .assert_called_with (source_path , destination_path )
154
154
155
155
0 commit comments