Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#30775 closed Cleanup/optimization (fixed)

Tutorial part 5 testing often encounters import errors

Reported by: Katie McLaughlin Owned by: Katie McLaughlin
Component: Documentation Version: 2.2
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

As reported via the contact form (thanks Tom R.!), people completing the tutorial often get stuck in Part 5 when running their first tests

https://stackoverflow.com/questions/14719883/django-can-not-get-a-time-function-timezone-datetime-to-work-properly-gett

The issue is that there is an import line hiding in Part 2 "Playing with the API" where imports are added to the polls/models.py that are often missed, generating a different error when running the tests than what is expected by that part of the tutorial.

I already have a patch for this :)

Change History (5)

comment:2 by Claude Paroz, 5 years ago

Has patch: set
Triage Stage: UnreviewedAccepted

comment:3 by Mariusz Felisiak <felisiak.mariusz@…>, 5 years ago

Resolution: fixed
Status: assignedclosed

In 44077985:

Fixed #30775 -- Added admonition about missing imports to "Running tests" section in tutorial 5.

comment:4 by Mariusz Felisiak <felisiak.mariusz@…>, 5 years ago

In 14125bb:

[3.0.x] Fixed #30775 -- Added admonition about missing imports to "Running tests" section in tutorial 5.

Backport of 44077985f58be02214a11ffde35776fed3c960e1 from master

comment:5 by Mariusz Felisiak <felisiak.mariusz@…>, 5 years ago

In 242805c8:

[2.2.x] Fixed #30775 -- Added admonition about missing imports to "Running tests" section in tutorial 5.

Backport of 44077985f58be02214a11ffde35776fed3c960e1 from master

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