summaryrefslogtreecommitdiff
path: root/tests/test_pretty_print.py
diff options
context:
space:
mode:
authorDon Bright <hugh.m.bright@gmail.com>2011-11-24 04:22:33 (GMT)
committerDon Bright <hugh.m.bright@gmail.com>2011-11-24 04:22:33 (GMT)
commit6c4b5bd3668467a9a65b6476440ba27d871d3037 (patch)
tree531c87d77975594ba37680e6631fa5d3837ae3ef /tests/test_pretty_print.py
parent29783dc4aa6e44221c9a584c2651624a93dfcf9a (diff)
tweak patch, tweak pretty print
Diffstat (limited to 'tests/test_pretty_print.py')
-rwxr-xr-xtests/test_pretty_print.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/test_pretty_print.py b/tests/test_pretty_print.py
index ffc74eb..6377929 100755
--- a/tests/test_pretty_print.py
+++ b/tests/test_pretty_print.py
@@ -74,18 +74,20 @@ def read_sysinfo(filename):
tmp = tmp.split('/')[0]
renderer = tmp
+ data += read_gitinfo()
+
+ data += 'Image comparison: PerceptualDiff by H. Yee'
+
+ data = data.strip()
+
hexhash = hashlib.md5()
hexhash.update(data)
hexhash = hexhash.hexdigest()[-4:].upper()
hash = ''
for c in hexhash: hash += chr(ord(c)+97-48)
-
sysid = osplain + '_' + machine + '_' + renderer + '_' + hash
sysid = sysid.lower()
-
- data += read_gitinfo()
- data += 'Image comparison: PerceptualDiff by H. Yee'
return data, sysid
class Test:
@@ -234,7 +236,7 @@ def wikitohtml(wiki_rootpath, sysid, wikidata, manifest):
x=re.sub("'''(.*?)'''","<b>\\1</b>",x)
filestrs=re.findall('\[\[File\:(.*?)\|.*?\]\]',x)
for f in filestrs:
- newfile_html='<img src="'+revmanifest[f]+'" width=250/>'
+ newfile_html='<img src="'+revmanifest[f]+'" width=250 />'
x=re.sub('\[\[File\:'+f+'\|.*?\]\]',newfile_html,x)
dic = { '|}':'</table>', '|-':'<tr>', '||':'<td>', '|':'<td>',
'!!':'<th>', '!':'<tr><th>', '\n\n':'\n<p>\n'} #order matters
contact: Jan Huwald // Impressum