#1074: [PATCH] Import error in Quickstarted tests/test_model.py
------------------------+---------------------------------------------------
 Reporter:  BenArmston  |       Owner:  anonymous
     Type:  defect      |      Status:  new      
 Priority:  normal      |   Milestone:           
Component:  TurboGears  |     Version:  0.9a6    
 Severity:  normal      |    Keywords:           
------------------------+---------------------------------------------------
 On line 10 of tests/test_model.py uses

 database.set_db_uri

 However, database has not been imported. Patch made in directory
 TurboGears-0.9a8-
 py2.4.egg/turbogears/qstemplates/quickstart/+package+/tests  provided.

 {{{

 --- test_model.py_tmpl~ 2006-08-13 20:44:36.000000000 +0100
 +++ test_model.py_tmpl  2006-08-15 18:43:02.000000000 +0100
 @@ -4,7 +4,7 @@
  # choice for testing, because you can use an in-memory database
  # which is very fast.

 -from turbogears import testutil
 +from turbogears import testutil, database
  # from ${package}.model import YourDataClass, User

  # database.set_db_uri("sqlite:///:memory:")

 }}}

-- 
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/1074>
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