#12530: Code in test classes can get access to live database
----------------------------------------+-----------------------------------
Reporter: Art_S | Owner: nobody
Status: reopened | Milestone:
Component: Testing framework | Version: 1.1
Resolution: | Keywords:
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
----------------------------------------+-----------------------------------
Changes (by Art_S):
* status: closed => reopened
* resolution: wontfix =>
Comment:
I would like to re-open this.
My impression was that creation of instances of Test Classes was
controlled by django.
If that's the case (only if!) then why can't it initialise the settings
beforehand?
The whole thing is kind of dangerous - I can see the use case when you
need to run the tests in production, and having any test code there which
can potentially modify prod data is really bad.
--
Ticket URL: <http://code.djangoproject.com/ticket/12530#comment:2>
Django <http://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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.