#25290: Inconsistency between database and object instances when using
setUpTestData with related objects
-----------------------------------+--------------------------------------
     Reporter:  MarkusH            |                    Owner:  nobody
         Type:  Bug                |                   Status:  new
    Component:  Testing framework  |                  Version:  1.8
     Severity:  Normal             |               Resolution:
     Keywords:                     |             Triage Stage:  Unreviewed
    Has patch:  0                  |      Needs documentation:  0
  Needs tests:  0                  |  Patch needs improvement:  0
Easy pickings:  0                  |                    UI/UX:  0
-----------------------------------+--------------------------------------

Comment (by timgraham):

 I'm not sure what we could do here besides adding a documentation warning
 that you shouldn't modify objects created in `setUpTestData()` in your
 test methods. Modifications to in-memory objects from setup work done at
 the class level will inevitably persist between test methods.

--
Ticket URL: <https://code.djangoproject.com/ticket/25290#comment:1>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.47b5d55020af8db7815b122ff60c77dd%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to