﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
30605	Define a variable TESTS in settings	אורי	nobody	"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."	New feature	closed	Uncategorized		Normal	wontfix			Unreviewed	0	0	0	0	0	0
