Updates readthrough tests

This commit is contained in:
Mouse Reeve 2021-06-09 11:05:15 -07:00
parent 3c7c8a1797
commit 4107f7ddf1
2 changed files with 4 additions and 4 deletions

View file

@ -33,7 +33,7 @@ class ReadThrough(TestCase):
self.assertEqual(self.edition.readthrough_set.count(), 0)
self.client.post(
"/start-reading/{}".format(self.edition.id),
"/reading-progress/start/{}".format(self.edition.id),
{
"start_date": "2020-11-27",
},
@ -54,7 +54,7 @@ class ReadThrough(TestCase):
self.assertEqual(self.edition.readthrough_set.count(), 0)
self.client.post(
"/start-reading/{}".format(self.edition.id),
"/reading-progress/start/{}".format(self.edition.id),
{
"start_date": "2020-11-27",
},

View file

@ -26,8 +26,8 @@ class ReadingStatus(View):
book = get_edition(book_id)
template = {
"want": "want.html",
"finish": "start.html",
"start": "finish.html",
"start": "start.html",
"finish": "finish.html",
}.get(status)
if not template:
return HttpResponseNotFound()