Removes the word "cover" from cover alt text

Fixes #694
This commit is contained in:
Mouse Reeve 2021-03-05 06:58:22 -08:00
parent cc8c4b2527
commit b70e728ffb
2 changed files with 2 additions and 2 deletions

View file

@ -91,7 +91,7 @@ class Book(BookDataModel):
@property
def alt_text(self):
''' image alt test '''
text = '%s cover' % self.title
text = '%s' % self.title
if self.edition_info:
text += ' (%s)' % self.edition_info
return text

View file

@ -81,7 +81,7 @@ class Book(TestCase):
book.save()
self.assertEqual(book.edition_info, 'worm, Glorbish language, 2020')
self.assertEqual(
book.alt_text, 'Test Edition cover (worm, Glorbish language, 2020)')
book.alt_text, 'Test Edition (worm, Glorbish language, 2020)')
def test_get_rank(self):