fix: refactor to reflect usage of proper UUID values
This commit is contained in:
parent
805ce5966f
commit
fd35f439ec
6 changed files with 19 additions and 9 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue