Changeset 5358
- Timestamp:
- 09/05/08 07:08:47 (4 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
projects/tg.devtools/trunk/devtools/templates/turbogears/+package+/tests/test_models.py_tmpl
r5352 r5358 3 3 4 4 from tg.testutil import DBTest 5 from sqlalchemy import create_engine6 5 7 6 from {{package}} import model 8 7 9 test_database = create_engine("sqlite:///:memory:")10 8 11 9 class TestModel(DBTest): 12 10 """The base class for testing models in you TG project.""" 13 11 model = model 14 database = test_database15 12 16 13 17 14 {{if identity == "sqlalchemy"}} 18 15 class TestUser(TestModel): projects/tg.devtools/trunk/devtools/templates/turbogears/test.ini_tmpl
r5130 r5358 17 17 18 18 [app:main] 19 {{if identity == "sqlalchemy"}} 20 sqlalchemy.url = sqlite:///:memory: 21 {{endif}} 19 22 use = config:development.ini 20 23