Opened 3 years ago

Closed 3 years ago

#32700 closed Cleanup/optimization (invalid)

Small indentation issue in part 5 of tutorial

Reported by: Matthew Dean Owned by: nobody
Component: Uncategorized Version: 3.2
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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.

Change History (1)

comment:1 by Tim Graham, 3 years ago

Resolution: invalid
Status: newclosed

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

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

Note: See TracTickets for help on using tickets.
Back to Top