summaryrefslogtreecommitdiff
path: root/test/testbase.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2006-05-29 22:15:16 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2006-05-29 22:15:16 +0000
commit487ff607d2618ebe363d5721bb64e5c7f64861f2 (patch)
tree6f8472e700f36b9b253f3c7e0448b69f7e26fe6c /test/testbase.py
parentec48df4fc346125e420a046146427dfb6545f686 (diff)
downloadsqlalchemy-487ff607d2618ebe363d5721bb64e5c7f64861f2.tar.gz
polymorphic linked list test, tests polymorphic inheritance with circular refs
Diffstat (limited to 'test/testbase.py')
-rw-r--r--test/testbase.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/testbase.py b/test/testbase.py
index 57fcb58c3..bec34487f 100644
--- a/test/testbase.py
+++ b/test/testbase.py
@@ -39,6 +39,7 @@ def parse_argv():
parser.add_option("--db", action="store", dest="db", default="sqlite", help="prefab database uri (sqlite, sqlite_file, postgres, mysql, oracle, oracle8, mssql)")
parser.add_option("--mockpool", action="store_true", dest="mockpool", help="use mock pool")
parser.add_option("--verbose", action="store_true", dest="verbose", help="full debug echoing")
+ parser.add_option("--noecho", action="store_true", dest="noecho", help="Disable SQL statement echoing")
parser.add_option("--quiet", action="store_true", dest="quiet", help="be totally quiet")
parser.add_option("--nothreadlocal", action="store_true", dest="nothreadlocal", help="dont use thread-local mod")
parser.add_option("--enginestrategy", action="store", default=None, dest="enginestrategy", help="engine strategy (plain or threadlocal, defaults to SA default)")
@@ -86,9 +87,9 @@ def parse_argv():
if options.enginestrategy is not None:
opts['strategy'] = options.enginestrategy
if options.mockpool:
- db = engine.create_engine(db_uri, echo=True, default_ordering=True, poolclass=MockPool, **opts)
+ db = engine.create_engine(db_uri, echo=(not options.noecho), default_ordering=True, poolclass=MockPool, **opts)
else:
- db = engine.create_engine(db_uri, echo=True, default_ordering=True, **opts)
+ db = engine.create_engine(db_uri, echo=(not options.noecho), default_ordering=True, **opts)
db = EngineAssert(db)
metadata = sqlalchemy.BoundMetaData(db)