#8792: Django's unit test system wipes out "custom sql" data before performing
tests
------------------------------+---------------------------------------------
 Reporter:  deltoide          |       Owner:  nobody    
   Status:  new               |   Milestone:  1.0       
Component:  Unit test system  |     Version:  SVN       
 Keywords:                    |       Stage:  Unreviewed
Has_patch:  0                 |  
------------------------------+---------------------------------------------
 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 ...

-- 
Ticket URL: <http://code.djangoproject.com/ticket/8792>
Django Code <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
-~----------~----~----~----~------~----~------~--~---

Reply via email to