mirror of
https://github.com/jazzband/django-avatar.git
synced 2026-03-16 22:20:30 +00:00
Fix test for avatar tag.
This commit is contained in:
parent
6091dd90fe
commit
ccaafe492c
1 changed files with 3 additions and 4 deletions
|
|
@ -215,9 +215,8 @@ class AvatarTests(TestCase):
|
|||
avatar = get_primary_avatar(self.user)
|
||||
|
||||
result = avatar_tags.avatar(self.user, title="Avatar")
|
||||
|
||||
self.assertIn('<img src="{}"'.format(avatar.avatar_url(80)), result)
|
||||
self.assertIn('width="80" height="80" alt="test" title="Avatar" />', result)
|
||||
html = '<img src="{}" width="80" height="80" alt="test" title="Avatar" />'.format(avatar.avatar_url(80))
|
||||
self.assertInHTML(html, result)
|
||||
|
||||
def test_default_add_template(self):
|
||||
response = self.client.get('/avatar/add/')
|
||||
|
|
@ -251,7 +250,7 @@ class AvatarTests(TestCase):
|
|||
response = self.client.get('/avatar/delete/')
|
||||
self.assertNotContains(response, 'like to delete.')
|
||||
self.assertContains(response, 'ALTERNATE DELETE TEMPLATE')
|
||||
|
||||
|
||||
# def testAvatarOrder
|
||||
# def testReplaceAvatarWhenMaxIsOne
|
||||
# def testHashFileName
|
||||
|
|
|
|||
Loading…
Reference in a new issue