def test_copy_dir_overwrite(self, rm_mock, copy_mock, _): from_path = '/from_path' to_path = '/to_path' utils.copy_dir(from_path, to_path) rm_mock.assert_called_once_with(to_path, ignore_errors=True) copy_mock.assert_called_once_with(from_path, to_path, symlinks=True)
def test_copy_dir(self, copy_mock): from_path = '/from_path' to_path = '/to_path' utils.copy_dir(from_path, to_path) copy_mock.assert_called_once_with(from_path, to_path, symlinks=True)