mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-22 17:41:08 +00:00
Fixes test
This commit is contained in:
parent
834eb95d9d
commit
c12aa1ef79
1 changed files with 2 additions and 1 deletions
|
@ -231,11 +231,12 @@ class ReadingViews(TestCase):
|
|||
"finish_date": "2018-03-07",
|
||||
"book": self.book.id,
|
||||
"id": "",
|
||||
"user": self.local_user.id,
|
||||
},
|
||||
)
|
||||
request.user = self.local_user
|
||||
|
||||
views.create_readthrough(request)
|
||||
views.ReadThrough.as_view()(request)
|
||||
readthrough = models.ReadThrough.objects.get()
|
||||
self.assertEqual(readthrough.start_date.year, 2017)
|
||||
self.assertEqual(readthrough.start_date.month, 1)
|
||||
|
|
Loading…
Reference in a new issue