#1021: nosetests displays confusing error if there are problems with model
------------------------+---------------------------------------------------
 Reporter:  nerkles     |       Owner:  anonymous
     Type:  defect      |      Status:  new      
 Priority:  normal      |   Milestone:  1.0b1    
Component:  TurboGears  |     Version:  0.9a6    
 Severity:  major       |    Keywords:  nosetests
------------------------+---------------------------------------------------
 It appears that if there is any error with the model, nosetests will
 attempt to reload the model, causing errors like:

 ValueError: class VisitIdentity is already in the registry (other class is
 <class 'myproject.model.VisitIdentity'>, from the module myproject.model
 in /Users/Shared/myproject/myproject/model.pyc; attempted new class is
 <class 'myproject.model.VisitIdentity'>, from the module myproject.model
 in /Users/Shared/myproject/myproject/model.pyc)

 When really the error is a typo (or other mistake in the model):

 NameError: name 'MulitpleJoin' is not defined

 (you can see the real error if you try to do tg-admin sql create)

-- 
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/1021>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Tickets" 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/turbogears-tickets
-~----------~----~----~----~------~----~------~--~---

Reply via email to