Check the creation and properties of a superuser
(self)
| 78 | self.assertTrue(super.is_staff) |
| 79 | |
| 80 | async def test_asuperuser(self): |
| 81 | "Check the creation and properties of a superuser" |
| 82 | super = await User.objects.acreate_superuser( |
| 83 | "super", "super@example.com", "super" |
| 84 | ) |
| 85 | self.assertTrue(super.is_superuser) |
| 86 | self.assertTrue(super.is_active) |
| 87 | self.assertTrue(super.is_staff) |
| 88 | |
| 89 | def test_superuser_no_email_or_password(self): |
| 90 | cases = [ |
nothing calls this directly
no test coverage detected