3
0
Fork 0

fix: refactor to reflect usage of proper UUID values

This commit is contained in:
Lance Edgar 2024-12-08 00:11:30 -06:00
parent 805ce5966f
commit fd35f439ec
6 changed files with 19 additions and 9 deletions

View file

@ -146,14 +146,14 @@ class TestRoleRefsWidget(WebTestCase):
# editable values list *excludes* admin (by default)
html = widget.serialize(field, {admin.uuid, blokes.uuid})
self.assertNotIn(admin.uuid, html)
self.assertIn(blokes.uuid, html)
self.assertNotIn(str(admin.uuid), html)
self.assertIn(str(blokes.uuid), html)
# but admin is included for root user
self.request.is_root = True
html = widget.serialize(field, {admin.uuid, blokes.uuid})
self.assertIn(admin.uuid, html)
self.assertIn(blokes.uuid, html)
self.assertIn(str(admin.uuid), html)
self.assertIn(str(blokes.uuid), html)
class TestUserRefsWidget(WebTestCase):