mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-01-19 13:45:26 +00:00
Updates readthrough tests
This commit is contained in:
parent
3c7c8a1797
commit
4107f7ddf1
2 changed files with 4 additions and 4 deletions
|
@ -33,7 +33,7 @@ class ReadThrough(TestCase):
|
||||||
self.assertEqual(self.edition.readthrough_set.count(), 0)
|
self.assertEqual(self.edition.readthrough_set.count(), 0)
|
||||||
|
|
||||||
self.client.post(
|
self.client.post(
|
||||||
"/start-reading/{}".format(self.edition.id),
|
"/reading-progress/start/{}".format(self.edition.id),
|
||||||
{
|
{
|
||||||
"start_date": "2020-11-27",
|
"start_date": "2020-11-27",
|
||||||
},
|
},
|
||||||
|
@ -54,7 +54,7 @@ class ReadThrough(TestCase):
|
||||||
self.assertEqual(self.edition.readthrough_set.count(), 0)
|
self.assertEqual(self.edition.readthrough_set.count(), 0)
|
||||||
|
|
||||||
self.client.post(
|
self.client.post(
|
||||||
"/start-reading/{}".format(self.edition.id),
|
"/reading-progress/start/{}".format(self.edition.id),
|
||||||
{
|
{
|
||||||
"start_date": "2020-11-27",
|
"start_date": "2020-11-27",
|
||||||
},
|
},
|
||||||
|
|
|
@ -26,8 +26,8 @@ class ReadingStatus(View):
|
||||||
book = get_edition(book_id)
|
book = get_edition(book_id)
|
||||||
template = {
|
template = {
|
||||||
"want": "want.html",
|
"want": "want.html",
|
||||||
"finish": "start.html",
|
"start": "start.html",
|
||||||
"start": "finish.html",
|
"finish": "finish.html",
|
||||||
}.get(status)
|
}.get(status)
|
||||||
if not template:
|
if not template:
|
||||||
return HttpResponseNotFound()
|
return HttpResponseNotFound()
|
||||||
|
|
Loading…
Reference in a new issue