fix unit tests
This commit is contained in:
parent
b392fadf60
commit
05155bf9cf
2 changed files with 2 additions and 2 deletions
|
|
@ -33,7 +33,7 @@ class TestFormatMode(unittest.TestCase):
|
|||
)
|
||||
|
||||
for input, output in formats:
|
||||
self.assertEqual(formatLink(input), output)
|
||||
self.assertEqual(str(formatLink(input)), output)
|
||||
|
||||
def test_escape_html(self):
|
||||
tests = (
|
||||
|
|
|
|||
|
|
@ -898,7 +898,7 @@ def _parse_value(key, value, sep=', '):
|
|||
if key in ('brootid', 'buildroot_id'):
|
||||
# do the escaping ourselves since we include html
|
||||
need_escape = False
|
||||
brid = urllib.parse.quote(value)
|
||||
brid = urllib.parse.quote(str(value))
|
||||
_str = escapeHTML(value)
|
||||
begin_tag = '<a href="buildrootinfo?buildrootID=%s">' % brid
|
||||
end_tag = '</a>'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue