diff options
| author | Jason Kirtland <jek@discorporate.us> | 2007-10-31 23:49:09 +0000 |
|---|---|---|
| committer | Jason Kirtland <jek@discorporate.us> | 2007-10-31 23:49:09 +0000 |
| commit | ad9f8b8158ebd5509eb98c45179f1187f52c96d0 (patch) | |
| tree | ad5b56d5e633c36d577b3640dc05348658609f64 /test/testlib/config.py | |
| parent | d5aa08160a6b93dcb39343b41de78b73cb68ac7d (diff) | |
| download | sqlalchemy-ad9f8b8158ebd5509eb98c45179f1187f52c96d0.tar.gz | |
Added command line options to add tripwires for __hash__, __eq__ and __nonzero__ on mapped classes.
Diffstat (limited to 'test/testlib/config.py')
| -rw-r--r-- | test/testlib/config.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/testlib/config.py b/test/testlib/config.py index a4306e9b4..36db872eb 100644 --- a/test/testlib/config.py +++ b/test/testlib/config.py @@ -74,7 +74,7 @@ def _start_coverage(option, opt_str, value, parser): atexit.register(_stop) coverage.erase() coverage.start() - + def _list_dbs(*args): print "Available --db options (use --dburi to override)" for macro in sorted(file_config.options('db')): @@ -114,6 +114,12 @@ opt("--enginestrategy", action="callback", type="string", opt("--reversetop", action="store_true", dest="reversetop", default=False, help="Reverse the collection ordering for topological sorts (helps " "reveal dependency issues)") +opt("--unhashable", action="store_true", dest="unhashable", default=False, + help="Disallow SQLAlchemy from performing a hash() on mapped test objects.") +opt("--noncomparable", action="store_true", dest="noncomparable", default=False, + help="Disallow SQLAlchemy from performing == on mapped test objects.") +opt("--truthless", action="store_true", dest="truthless", default=False, + help="Disallow SQLAlchemy from truth-evaluating mapped test objects.") opt("--serverside", action="callback", callback=_server_side_cursors, help="Turn on server side cursors for PG") opt("--mysql-engine", action="store", dest="mysql_engine", default=None, |
