Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #1074 (closed defect: fixed)

Opened 13 years ago

Last modified 12 years ago

[PATCH] Import error in Quickstarted tests/test_model.py

Reported by: BenArmston Owned by: fredlin
Priority: normal Milestone:
Component: TurboGears Version: 0.9a6
Severity: normal Keywords:


On line 10 of tests/test_model.py uses


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:")

Change History

comment:1 Changed 13 years ago by fredlin

  • Owner changed from anonymous to fredlin

comment:2 Changed 13 years ago by fredlin

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.