#7835: Provide the ability for model definitions that are only availably during
testing
---------------------------------+------------------------------------------
 Reporter:  russellm             |       Owner:  nobody    
   Status:  new                  |   Milestone:            
Component:  Unit test system     |     Version:  SVN       
 Keywords:  feature test models  |       Stage:  Unreviewed
Has_patch:  0                    |  
---------------------------------+------------------------------------------
 A current limitation of the unit test framework is that there is no
 capacity to define 'test models' - that is, models that are only required
 for the purposes of testing. A regular installation would not know
 anything about these models - only a test database would have access to
 them.

 There are several existing applications that have a need for this
 capability: For example:
  * contrib.admin: you can't test the way admin handles models without some
 models to handle.
  * contrib.databrowse: you can't test the way the browser works without
 having models to browse
  * Django Evolution: you can't evolve models without having some models to
 evolve.

 The easiest way to work around this at present is to have a standalone
 test project which exercises the required functionality. However, these
 tests aren't integrated into the automated test suite, so they.

 Another option is to do some app_cache munging during the test - this
 works, but is very messy.

 Django should provide a way for model definitions to be defined as part of
 the test definition, synchronized as part of the test setup, populated and
 manipulated during test execution, and destroyed along with the test
 database.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/7835>
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