fix unit tests

This commit is contained in:
Mike McLean 2024-09-26 22:09:36 -04:00
parent b392fadf60
commit 05155bf9cf
2 changed files with 2 additions and 2 deletions

View file

@ -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 = (

View file

@ -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>'