#7835: Provide the ability for model definitions that are only availably during
testing
---------------------------------------------+------------------------------
               Reporter:  russellm           |         Owner:  kkubasik         
  
                 Status:  new                |     Milestone:                   
  
              Component:  Testing framework  |       Version:  SVN              
  
             Resolution:                     |      Keywords:  feature test 
models
           Triage Stage:  Accepted           |     Has patch:  0                
  
    Needs documentation:  0                  |   Needs tests:  0                
  
Patch needs improvement:  0                  |  
---------------------------------------------+------------------------------

Comment (by julien):

 To second Russell's comment, my own personal motivation with this ticket
 were (and still are) to reproduce all the conditions necessary to test the
 dependency of an app with another fictional, self-contained, app (i.e. not
 just to test the other apps' models, but also its urls, its views, its
 templatetags, etc.).

 For what's it's worth, I've actually successfully used the hack above in
 multiple production apps (e.g. http://github.com/glamkit/glamkit-
 blogtools/blob/master/blogtools/tests/__init__.py#L70). The main
 theoretical thing that's missing for me is a proper cleanup of the
 appcache to make sure that nothing goes ugly while running the rest of
 your project's test suite (although in practice I've never run into
 anything problematic so far).

-- 
Ticket URL: <http://code.djangoproject.com/ticket/7835#comment:28>
Django <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 django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to