#30605: Define a a variable TESTS in settings
-----------------------------------------+------------------------
               Reporter:  אורי           |          Owner:  nobody
                   Type:  New feature    |         Status:  new
              Component:  Uncategorized  |        Version:
               Severity:  Normal         |       Keywords:
           Triage Stage:  Unreviewed     |      Has patch:  0
    Needs documentation:  0              |    Needs tests:  0
Patch needs improvement:  0              |  Easy pickings:  0
                  UI/UX:  0              |
-----------------------------------------+------------------------
 Please see my comment from today on this ticket:
 https://code.djangoproject.com/ticket/23251

 I think it might be useful to define a variable (such as `TESTS`) in
 settings, which will only be True when running tests, and then Django will
 know we are running tests and act accordingly, for example save files in a
 different directory (such as `TESTS_MEDIA_ROOT`) and not in the default
 `MEDIA_ROOT` directory, and delete them after all the tests end. And other
 actions which should run only in tests or only not in tests.

 If such a variable is defined, its default should be of course False.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30605>
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/054.a4c60b9fa99dc54aa69589f4fa375953%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to