summaryrefslogtreecommitdiff
path: root/test/testlib/testing.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Added rowset() testing helper.Jason Kirtland2007-11-011-0/+8
|
* - merged factor_down_bindparams branch.Mike Bayer2007-11-011-6/+2
| | | | | | - removed ClauseParameters object; compiled.params returns a regular dictionary now, as well as result.last_inserted_params()/last_updated_params(). - various code trimming, method removals.
* Fixed assert_sql_count exception logic.Jason Kirtland2007-10-231-6/+4
|
* Restored unicode foreign key tests for [ticket:729].Jason Kirtland2007-10-141-2/+34
|
* fixed firebird visit_alias [ticket:779]Mike Bayer2007-09-221-3/+3
|
* - took out method calls for oid_columnMike Bayer2007-09-041-6/+3
| | | | | | - reduced complexity of parameter handling during execution; __distill_params does all parameter munging, executioncontext.parameters always holds a list of parameter structures (lists, tuples, or dicts).
* - removed "parameters" argument from clauseelement.compile(), replaced withMike Bayer2007-09-041-2/+7
| | | | | | | | "column_keys". the parameters sent to execute() only interact with the insert/update statement compilation process in terms of the column names present but not the values for those columns. produces more consistent execute/executemany behavior, simplifies things a bit internally.
* mssql unit test fixesPaul Johnston2007-08-191-2/+2
|
* 1. Module layout. sql.py and related move into a package called "sql".Mike Bayer2007-08-181-1/+2
| | | | | | | | | | | | 2. compiler names changed to be less verbose, unused classes removed. 3. Methods on Dialect which return compilers, schema generators, identifier preparers have changed to direct class references, typically on the Dialect class itself or optionally as attributes on an individual Dialect instance if conditional behavior is needed. This takes away the need for Dialect subclasses to know how to instantiate these objects, and also reduces method overhead by one call for each one. 4. as a result of 3., some internal signatures have changed for things like compiler() (now statement_compiler()), preparer(), etc., mostly in that the dialect needs to be passed explicitly as the first argument (since they are just class references now). The compiler() method on Engine and Connection is now also named statement_compiler(), but as before does not take the dialect as an argument. 5. changed _process_row function on RowProxy to be a class reference, cuts out 50K method calls from insertspeed.py
* - added extra argument con_proxy to ConnectionListener interface ↵Mike Bayer2007-08-171-1/+4
| | | | | | | | | | checkout/checkin methods - changed testing connection closer to work on _ConnectionFairy instances, resulting in pool checkins, not actual closes - disabled session two phase test for now, needs work - added some two-phase support to TLEngine, not tested - TLTransaction is now a wrapper
* mass has_key->__contains__ migration, [ticket:738]Mike Bayer2007-08-151-1/+1
|
* - cleanup, converted unitofwork.py to standard fixturesMike Bayer2007-08-151-2/+7
|
* - merged "fasttypes" branch. this branch changes the signatureMike Bayer2007-08-141-1/+1
| | | | | | | | | | | | | of convert_bind_param() and convert_result_value() to callable-returning bind_processor() and result_processor() methods. if no callable is returned, no pre/post processing function is called. - hooks added throughout base/sql/defaults to optimize the calling of bind param/result processors so that method call overhead is minimized. special cases added for executemany() scenarios such that unneeded "last row id" logic doesn't kick in, parameters aren't excessively traversed. - new performance tests show a combined mass-insert/mass-select test as having 68% fewer function calls than the same test run against 0.3. - general performance improvement of result set iteration is around 10-20%.
* revert previous change; had misunderstood contextPaul Johnston2007-08-141-2/+0
|
* fudge to make SQL asserts work reliably with MSSQLPaul Johnston2007-08-141-0/+2
|
* - base_mapper() becomes a plain attributeMike Bayer2007-08-141-1/+5
| | | | | | | | - session.execute() and scalar() can search for a Table with which to bind from using the given ClauseElement - session automatically extrapolates tables from mappers with binds, also uses base_mapper so that inheritance hierarchies bind automatically - moved ClauseVisitor traversal back to inlined non-recursive
* - generalized a SQLCompileTest out of select.py, installedMike Bayer2007-08-131-1/+20
| | | | | into dialect/mssql.py, dialect/oracle.py, sql/generative.py - fixed oracle issues [ticket:732], [ticket:733], [ticket:734]
* switch (simple) occurences of 'if len(x)' to 'if x': find . -name '*.py' ↵Jonathan Ellis2007-08-031-1/+1
| | | | |xargs perl -pi.bak -e 's/if len\((\S+)\):/if $1:/' && find . -name '*.bak' |xargs rm
* - Dialects can be queried for the server version (sqlite and mysql only with ↵Jason Kirtland2007-08-031-3/+49
| | | | | | | | | | | | | | this commit) - Mark everything in a test suite as failed when setUpAll fails. - Added test coverage for Unicode table names in metadata.reflect() - @testing.exclude() filters out tests by server version - Applied exclude to the test suite, MySQL 4.1 passes again (no XA or SAVEPOINT) - Removed MySQL charset-setting pool hook- charset=utf8&use_unicode=0 works just as well. (Am I nuts? I'd swear this didn't work before.) - Finally migrated some old MySQL-tests into the dialect test module - Corrected 'commit' and 'rollback' logic (and comment) for ancient MySQL versions lacking transactions entirely - Deprecated the MySQL get_version_info in favor of server_version_info - Added a big hunk-o-doc for MySQL.
* Fix testing. Really.Jason Kirtland2007-07-271-1/+6
|
* Fix coverage again- try really hard not to load anything from lib/ until ↵Jason Kirtland2007-07-271-25/+16
| | | | after the coverage hook runs.
* merging 0.4 branch to trunk. see CHANGES for details. 0.3 moves to ↵Mike Bayer2007-07-271-0/+363
maintenance branch in branches/rel_0_3.