summaryrefslogtreecommitdiff
path: root/tests/test_pretty_print.py
diff options
context:
space:
mode:
authora-e-m <alexemartyn@gmail.com>2013-12-08 18:51:25 (GMT)
committera-e-m <alexemartyn@gmail.com>2013-12-08 18:51:25 (GMT)
commitcb2b094b269646c79f48f525306b74cd7bc0f633 (patch)
treec1a442ef4d020acd82af055d92bf43008f42c05a /tests/test_pretty_print.py
parent8a21092dc01dfe54550b8fceada35999bed3056b (diff)
Fixed small error in Templates.get
Diffstat (limited to 'tests/test_pretty_print.py')
-rwxr-xr-xtests/test_pretty_print.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_pretty_print.py b/tests/test_pretty_print.py
index c2deab8..349a730 100755
--- a/tests/test_pretty_print.py
+++ b/tests/test_pretty_print.py
@@ -304,10 +304,10 @@ class Templates(object):
def add(self, template, var, *args, **kwargs):
self.filled[var] = self.filled.get(var, '') + self.fill(template, *args, **kwargs)
- return self.filled[var]
+ return self.get(var)
def get(self, var):
- return self.filled[var]
+ return self.filled.get(var, '')
def to_html(project_name, startdate, tests, enddate, sysinfo, sysid, makefiles):
contact: Jan Huwald // Impressum