summaryrefslogtreecommitdiff
path: root/test/tables.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2005-11-26 19:26:30 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2005-11-26 19:26:30 +0000
commit3a0cee2a24dfdbabc2ab4e1423e744374d57f80d (patch)
treece4168e57280a64422172649eb8929080f198c67 /test/tables.py
parentba1e7878ecf96f68bd73903768469cb3b57a1516 (diff)
downloadsqlalchemy-3a0cee2a24dfdbabc2ab4e1423e744374d57f80d.tar.gz
refactoring test to be more consistent, added multipk test to engine
Diffstat (limited to 'test/tables.py')
-rw-r--r--test/tables.py14
1 files changed, 1 insertions, 13 deletions
diff --git a/test/tables.py b/test/tables.py
index b1a241fa4..a2ee265e4 100644
--- a/test/tables.py
+++ b/test/tables.py
@@ -9,20 +9,8 @@ import testbase
__ALL__ = ['db', 'users', 'addresses', 'orders', 'orderitems', 'keywords', 'itemkeywords']
ECHO = testbase.echo
+db = testbase.get_db()
-DBTYPE = 'sqlite_memory'
-#DBTYPE = 'postgres'
-#DBTYPE = 'sqlite_file'
-
-if DBTYPE == 'sqlite_memory':
- db = sqlalchemy.engine.create_engine('sqlite', {'filename':':memory:'}, echo = testbase.echo)
-elif DBTYPE == 'sqlite_file':
- import sqlalchemy.databases.sqlite as sqllite
- db = sqlalchemy.engine.create_engine('sqlite', {'filename':'querytest.db'}, echo = testbase.echo)
-elif DBTYPE == 'postgres':
- db = sqlalchemy.engine.create_engine('postgres', {'database':'test', 'host':'127.0.0.1', 'user':'scott', 'password':'tiger'}, echo=testbase.echo)
-
-db = testbase.EngineAssert(db)
users = Table('users', db,
Column('user_id', Integer, Sequence('user_id_seq', optional=True), primary_key = True),