[Django] #32700: Small indentation issue in part 5 of tutorial

4 views
Skip to first unread message

Django

unread,
Apr 30, 2021, 10:55:34 AM4/30/21
to django-...@googlegroups.com
#32700: Small indentation issue in part 5 of tutorial
------------------------------------------------+------------------------
Reporter: mattdeann | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Uncategorized | Version: 3.2
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------------+------------------------
In the Create a test to expose the bug section, smaller windows format

class QuestionModelTests(TestCase):

def test_was_published_recently_with_future_question(self):
"""
was_published_recently() returns False for questions whose
pub_date
is in the future.
"""
time = timezone.now() + datetime.timedelta(days=30)
future_question = Question(pub_date=time)
self.assertIs(future_question.was_published_recently(), False)


in very confusing ways.

--
Ticket URL: <https://code.djangoproject.com/ticket/32700>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Apr 30, 2021, 11:10:44 AM4/30/21
to django-...@googlegroups.com
#32700: Small indentation issue in part 5 of tutorial
-------------------------------------+-------------------------------------
Reporter: Matthew Dean | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
Component: Uncategorized | Version: 3.2
Severity: Normal | Resolution: invalid

Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):

* status: new => closed
* resolution: => invalid


Comment:

Duplicate of https://github.com/django/djangoproject.com/issues/662

(but technically invalid as this is the wrong issue tracker for the issue)

--
Ticket URL: <https://code.djangoproject.com/ticket/32700#comment:1>

Reply all
Reply to author
Forward
0 new messages