From 2ed476e0ee0d601f38af9047ce0fe03cadb551a1 Mon Sep 17 00:00:00 2001 From: Igor Kuivjogi Fernandes <47466755+igorkf@users.noreply.github.com> Date: Sat, 12 Jun 2021 16:00:59 -0300 Subject: [PATCH] Update views.rst I removed the unnecessary quotes surrounding the block code. --- views.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views.rst b/views.rst index 7fe0668..d5ca0ec 100644 --- a/views.rst +++ b/views.rst @@ -47,7 +47,7 @@ So lets go ahead and take a look to see what the tests `used to look like`_. He has already updated the project with my new tests, so you can check them out, and break them at your leisure.:: - """ + >>> from django.test import Client >>> from basic.blog.models import Post, Category >>> import datetime @@ -77,7 +77,7 @@ out, and break them at your leisure.:: >>> response = client.get(post.get_absolute_url()) >>> response.status_code 200 - """ + Notice how he is using reverse() when referring to his URLs, this makes tests