Skip to content

Commit

Permalink
Update cumulusci/tasks/apex/testrunner.py
Browse files Browse the repository at this point in the history
Co-authored-by: David Reed <[email protected]>
  • Loading branch information
mjawadtp and davidmreed authored Sep 22, 2023
1 parent b778e0d commit 02e05a8
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions cumulusci/tasks/apex/testrunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,14 +323,9 @@ def _get_test_classes(self):
def _get_comma_separated_string_of_items(self, itemlist):
# Accepts a list of strings. A formatted string is returned.
# Example: Input: ['TestSuite1', 'TestSuite2'] Output: ''TestSuite1','TestSuite2''
item_string = ""

for index, item in enumerate(itemlist):
item_string += f"'{item}'"
if index is not len(itemlist) - 1:
item_string += ","

return item_string
return ",".join(
[f"'{item}'" for item in item_string]
)

def _get_test_suite_ids_from_test_suite_names_query(self):
# Returns a query string which when executed fetches the test suite ids of the list of test suites names.
Expand Down

0 comments on commit 02e05a8

Please sign in to comment.