#31476: Django Tutorial 5 - Testing create_question issue - Assertion Failure -----------------------------------+-------------------------------------- Reporter: Anthony Davie | Owner: nobody Type: Bug | Status: closed Component: Documentation | Version: 3.0 Severity: Normal | Resolution: invalid Keywords: tutorial, testing | Triage Stage: Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 1 | UI/UX: 0 -----------------------------------+-------------------------------------- Changes (by martinlehoux):
* status: new => closed * resolution: => invalid * easy: 0 => 1 Comment: Hello Anthony, I think you just have a typo in your `create_question` function : yours has `time = timezone.now() - datetime.timedelta(days=days)` whereas the tutorial has `time = timezone.now() + datetime.timedelta(days=days)`. That explains why your past and future are in the wrong place ;) -- Ticket URL: <https://code.djangoproject.com/ticket/31476#comment:2> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.f58955d01a0c869cf9cf7e8e41b3d749%40djangoproject.com.