#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 , 9 years ago
Summary: | Docs say fixtures are loaded per test, not per test case → Clarify that fixture loading for TestCase is per test case |
---|---|
Triage Stage: | Unreviewed → Accepted |
Type: | Uncategorized → Cleanup/optimization |
Note:
See TracTickets
for help on using tickets.
The documentation is correct for
TransactionTestCase
but could be clarified forTestCase
. Feel free to send a pull request. Thanks.