From 4107f7ddf1c999dff904a403371fc3543120dcf5 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Wed, 9 Jun 2021 11:05:15 -0700 Subject: [PATCH] Updates readthrough tests --- bookwyrm/tests/views/test_readthrough.py | 4 ++-- bookwyrm/views/reading.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bookwyrm/tests/views/test_readthrough.py b/bookwyrm/tests/views/test_readthrough.py index a686cb7cf..f51e89af7 100644 --- a/bookwyrm/tests/views/test_readthrough.py +++ b/bookwyrm/tests/views/test_readthrough.py @@ -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", }, diff --git a/bookwyrm/views/reading.py b/bookwyrm/views/reading.py index 14e02ae61..1c897ab38 100644 --- a/bookwyrm/views/reading.py +++ b/bookwyrm/views/reading.py @@ -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()