forked from mirrors/bookwyrm
parent
cc8c4b2527
commit
b70e728ffb
2 changed files with 2 additions and 2 deletions
|
@ -91,7 +91,7 @@ class Book(BookDataModel):
|
||||||
@property
|
@property
|
||||||
def alt_text(self):
|
def alt_text(self):
|
||||||
''' image alt test '''
|
''' image alt test '''
|
||||||
text = '%s cover' % self.title
|
text = '%s' % self.title
|
||||||
if self.edition_info:
|
if self.edition_info:
|
||||||
text += ' (%s)' % self.edition_info
|
text += ' (%s)' % self.edition_info
|
||||||
return text
|
return text
|
||||||
|
|
|
@ -81,7 +81,7 @@ class Book(TestCase):
|
||||||
book.save()
|
book.save()
|
||||||
self.assertEqual(book.edition_info, 'worm, Glorbish language, 2020')
|
self.assertEqual(book.edition_info, 'worm, Glorbish language, 2020')
|
||||||
self.assertEqual(
|
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):
|
def test_get_rank(self):
|
||||||
|
|
Loading…
Reference in a new issue