Skip to content

Commit bee4852

Browse files
committed
Tidying up test output
1 parent 337fd7b commit bee4852

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

tests/src/python/test_qgsdelimitedtextprovider.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -223,14 +223,14 @@ def runTest( name, wanted, log_wanted, file, **params ):
223223
description = wrec['description']
224224
difference = recordDifference(wrec,trec)
225225
if not difference:
226-
print ' ',description,": Passed"
226+
print ' {0}: Passed'.format(description)
227227
else:
228-
print ' ',description,":",difference
228+
print ' {0}: {1}'.format(description,difference)
229229
failures.append(description+': '+difference)
230230
for id in data.keys():
231231
if id not in wanted:
232232
msg= "Layer contains unexpected extra data with id: \"{0}\"".format(id)
233-
print ' ',msg
233+
print ' '+msg
234234
failures.append(msg)
235235
break
236236
assert len(failures) == 0,"\n".join(failures)
@@ -242,9 +242,11 @@ def runTest( name, wanted, log_wanted, file, **params ):
242242
log_wanted.remove(l)
243243
log.remove(l)
244244
for l in log_wanted:
245-
print ' ','Missing log message:',l
245+
print ' Missing log message:',l
246246
for l in log:
247-
print ' ','Extra log message:',l
247+
print ' Extra log message:',l
248+
if len(log)==0 and len(log_wanted)==0:
249+
print ' Message log correct: Passed'
248250
assert len(log_wanted) == 0, "Missing log messages:\n"+"\n".join(log_wanted)
249251
assert len(log) == 0, "Extra log messages:\n"+"\n".join(log)
250252

0 commit comments

Comments
 (0)