Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#26132 closed Cleanup/optimization (fixed)

Discourage use of TransactionTestCase.fixtures in favor of using the ORM

Reported by: Tim Graham Owned by: Tim Graham
Component: Documentation Version: dev
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

I think it's considered a best practice to use the ORM to create test data rather than using fixtures. Django's tests were converted in 39a7eed1bbf12020a077e4bec3d82e08f171a021.

Change History (5)

comment:1 by Tim Graham, 9 years ago

Has patch: set

comment:2 by Simon Charette, 9 years ago

Triage Stage: UnreviewedReady for checkin

comment:3 by Loic Bistuer, 9 years ago

LGTM

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

Resolution: fixed
Status: newclosed

In b0b45f9:

Fixed #26132 -- Discouraged use of TransactionTestCase.fixtures.

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

In 41e059de:

[1.9.x] Fixed #26132 -- Discouraged use of TransactionTestCase.fixtures.

Backport of b0b45f9a8373f47e96ef6c22d254c984d3b6b3c0 from master

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