﻿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
8792	"Django's unit test system wipes out ""custom sql"" data before performing tests"	deltoide	nobody	"Django's unit test system issues ""flush"" command (resulting in a truncate for all tables) just before performing tests. This causes problems when having custom sql scripts (<appname>/sql/<modelname>.sql) because all this data is wiped out by the truncate and might be required for the tests.

Django's test execution path:
  -  tables creation
  -  custom sql execution (potential data insertion)
  -  flush (truncate all tables)
  -  perform tests (without potential custom sql data!)


I think it might be good to execute custom sql after the truncate has occurred ..."		closed	Testing framework	dev		wontfix			Unreviewed	0	0	0	0	0	0
