mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2025-01-26 07:25:14 +00:00
Adjust for changes to the User model
This commit is contained in:
parent
875c92cf7c
commit
c895f16532
|
@ -36,9 +36,9 @@ class TestUserModel(NyaaTestCase):
|
||||||
self.assertEqual(self.user.userlevel_str, 'Moderator')
|
self.assertEqual(self.user.userlevel_str, 'Moderator')
|
||||||
self.assertEqual(self.user.userlevel_color, 'purple')
|
self.assertEqual(self.user.userlevel_color, 'purple')
|
||||||
|
|
||||||
# Superadmins also show up as Moderators
|
# The color for Superadmins is the same as Moderators
|
||||||
self.user.level = models.UserLevelType.SUPERADMIN
|
self.user.level = models.UserLevelType.SUPERADMIN
|
||||||
self.assertEqual(self.user.userlevel_str, 'Moderator')
|
self.assertEqual(self.user.userlevel_str, 'Administrator')
|
||||||
self.assertEqual(self.user.userlevel_color, 'purple')
|
self.assertEqual(self.user.userlevel_color, 'purple')
|
||||||
|
|
||||||
def test_userstatus_str(self):
|
def test_userstatus_str(self):
|
||||||
|
|
Loading…
Reference in a new issue