Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#26111 closed Cleanup/optimization (fixed)

Clarify that fixture loading for TestCase is per test case

Reported by: karyon Owned by: nobody
Component: Documentation Version: 1.9
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The testing tools documentation says "At the start of each test case, before setUp() is run, Django will flush the database [...] Then, all the named fixtures are installed [...] This flush/load procedure is repeated for each test in the test case"

But 1.8 release notes say "Fixture loading within TestCase is now performed once for the whole TestCase."

if you can confirm the first part is at least ambiguous, i'd fix that if wanted.

Change History (4)

comment:1 by Tim Graham, 9 years ago

Summary: Docs say fixtures are loaded per test, not per test caseClarify that fixture loading for TestCase is per test case
Triage Stage: UnreviewedAccepted
Type: UncategorizedCleanup/optimization

The documentation is correct for TransactionTestCase but could be clarified for TestCase. Feel free to send a pull request. Thanks.

comment:2 by Tim Graham, 9 years ago

Has patch: set
Triage Stage: AcceptedReady for checkin

comment:3 by Tim Graham <timograham@…>, 9 years ago

Resolution: fixed
Status: newclosed

In 02430ef:

Fixed #26111 -- Clarified that fixtures are loaded once per TestCase.

comment:4 by Tim Graham <timograham@…>, 9 years ago

In 6a0832da:

[1.9.x] Fixed #26111 -- Clarified that fixtures are loaded once per TestCase.

Backport of 02430ef19d9a7d3663cbc1cf66438e9e86b919d1 from master

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