Skip to content

Commit

Permalink
Changed title to FileName
Browse files Browse the repository at this point in the history
  • Loading branch information
lakshmi2506 committed Jun 10, 2024
1 parent c801e06 commit f76f30b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cumulusci/tasks/salesforce/salesforce_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def _run_task(self):
self.return_values = [
{
"Id": result["Id"],
"Title": result["Title"],
"FileName": result["Title"],
"FileType": result["FileType"],
}
for result in self.sf.query(
Expand All @@ -24,7 +24,7 @@ def _run_task(self):
# Print each row of the table
for file_desc in self.return_values:
self.logger.info(
f"{file_desc['Id']:<20} {file_desc['Title']:<50} {file_desc['FileType']:<10}"
f"{file_desc['Id']:<20} {file_desc['FileName']:<50} {file_desc['FileType']:<10}"
)

return self.return_values
4 changes: 2 additions & 2 deletions cumulusci/tasks/salesforce/tests/test_salesforce_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ def test_display_files(self):
"SELECT Title, Id, FileType FROM ContentDocument"
)
assert task.return_values == [
{"Id": "0PS000000000000", "Title": "TEST1", "FileType": "TXT"},
{"Id": "0PS000000000001", "Title": "TEST2", "FileType": "TXT"},
{"Id": "0PS000000000000", "FileName": "TEST1", "FileType": "TXT"},
{"Id": "0PS000000000001", "FileName": "TEST2", "FileType": "TXT"},
]

0 comments on commit f76f30b

Please sign in to comment.