fix tests
This commit is contained in:
Родитель
6f61dfe8da
Коммит
60c346e2d7
|
@ -58,7 +58,7 @@ class UserProfile(amo.models.ModelBase):
|
|||
blank=True)
|
||||
|
||||
password = models.CharField(max_length=255, default='')
|
||||
email = models.EmailField(unique=True)
|
||||
email = models.EmailField(unique=True, null=True)
|
||||
|
||||
averagerating = models.CharField(max_length=255, blank=True, null=True)
|
||||
bio = PurifiedField()
|
||||
|
|
|
@ -109,7 +109,7 @@ class TestUserDeleteForm(UserFormBase):
|
|||
# TODO XXX: Bug 593055
|
||||
#self.assertContains(r, "Profile Deleted")
|
||||
u = UserProfile.objects.get(id='4043307')
|
||||
eq_(u.email, '')
|
||||
eq_(u.email, None)
|
||||
|
||||
@patch('users.models.UserProfile.is_developer')
|
||||
def test_developer_attempt(self, f):
|
||||
|
|
|
@ -23,7 +23,7 @@ class TestUserProfile(amo.test_utils.ExtraSetup, test_utils.TestCase):
|
|||
eq_(u.email, 'jbalogh@mozilla.com')
|
||||
u.anonymize()
|
||||
x = UserProfile.objects.get(id='4043307')
|
||||
eq_(x.email, "")
|
||||
eq_(x.email, None)
|
||||
|
||||
def test_delete(self):
|
||||
"""Setting profile to delete should delete related User."""
|
||||
|
|
Загрузка…
Ссылка в новой задаче