forked from mirrors/bookwyrm
Templatetag test
This commit is contained in:
parent
9804d4cf51
commit
3abceb8563
1 changed files with 7 additions and 0 deletions
|
@ -175,3 +175,10 @@ class TemplateTags(TestCase):
|
|||
|
||||
result = bookwyrm_tags.related_status(notification)
|
||||
self.assertIsInstance(result, models.Status)
|
||||
|
||||
def test_get_next_shelf(self, *_):
|
||||
"""self progress helper"""
|
||||
self.assertEqual(bookwyrm_tags.get_next_shelf("to-read"), "reading")
|
||||
self.assertEqual(bookwyrm_tags.get_next_shelf("reading"), "read")
|
||||
self.assertEqual(bookwyrm_tags.get_next_shelf("read"), "read")
|
||||
self.assertEqual(bookwyrm_tags.get_next_shelf("blooooga"), "to-read")
|
||||
|
|
Loading…
Reference in a new issue