Skip to content

Commit

Permalink
Fix unit test failure in test_salesforce_files
Browse files Browse the repository at this point in the history
  • Loading branch information
mjawadtp committed Jun 14, 2024
1 parent 1081cfa commit d5e8c46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 0 additions & 4 deletions cumulusci/cumulusci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -751,10 +751,6 @@ tasks:
description: Upload documents (files) to a Salesforce org.
class_path: cumulusci.tasks.salesforce.salesforce_files.UploadFiles
group: Salesforce Metadata
display_files:
description: Display documents that has been uploaded to a library in Salesforce CRM Content or Salesforce Files.
class_path: cumulusci.tasks.salesforce.salesforce_files.DisplayFiles
group: Salesforce Metadata
flows:
ci_beta:
group: Continuous Integration
Expand Down
3 changes: 2 additions & 1 deletion cumulusci/tasks/salesforce/salesforce_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ def _run_task(self):
file_exists = os.path.exists(local_filename)

if file_exists:
self.logger.info(f'A file with the name {current_file['FileName']} already exists. in the directory. This file will be renamed.')
file_name = current_file['FileName']
self.logger.info(f'A file with the name {file_name} already exists. in the directory. This file will be renamed.')
if file_exists:
count = 1
while True:
Expand Down

0 comments on commit d5e8c46

Please sign in to comment.