Skip to content

Commit

Permalink
STYL: testUtils: Restore header sorting in test output
Browse files Browse the repository at this point in the history
This commit partially reverts commit d84c793 (STYL: testUtils: Improve
test outputs) and restore the sorting of columns written into the
CSV file.

Considering that data are organized using "featureClassName + featureName"
instead of just "featureName", information will remain consistently organized.

Suggested-by: Joost van Griethuysen <[email protected]>
  • Loading branch information
jcfr authored and JoostJM committed Feb 15, 2017
1 parent 84dc727 commit c5fd487
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def writeCSV(self, data, fileName):
csvFile = open(fileName, 'w')
csvFileWriter = csv.writer(csvFile)
# get the headers from the first row
header = list(data[list(data.keys())[0]].keys())
header = sorted(data[list(data.keys())[0]].keys())
header = ['testCase'] + header
csvFileWriter.writerow(header)
for testCase in sorted(data.keys()):
Expand Down

0 comments on commit c5fd487

Please sign in to comment.