Changeset 2268

Show
Ignore:
Timestamp:
12/22/06 16:45:12 (2 years ago)
Author:
alberto
Message:

server was started in tests too early and test.cfg_tmpl didn't have a dburi. Closes #1216

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0/turbogears/qstemplates/quickstart/test.cfg_tmpl

    r2263 r2268  
    11# You can place test-specific configuration options here (like test db uri, etc) 
    22# 
     3 
     4#if $sqlalchemy != "True" 
     5sqlobject.dburi = "sqlite:///:memory:" 
     6#else 
     7sqlalchemy.dburi = "sqlite:///:memory:" 
     8#end if 
     9 
  • branches/1.0/turbogears/testutil.py

    r2263 r2268  
    3737config.update({"global" : {"tg.new_style_logging" : True}}) 
    3838config.update({"global" : {"autoreload.on" : False}}) 
    39 cherrypy.server.start(serverClass=None, initOnly=True) 
    40 database.set_db_uri("sqlite:///:memory:") 
    4139 
    4240def start_cp():