summaryrefslogtreecommitdiff
path: root/test/testbase.py
Commit message (Collapse)AuthorAgeFilesLines
* - testbase is gone, replaced by testenvJason Kirtland2008-01-121-14/+0
| | | | | | - Importing testenv has no side effects- explicit functions provide similar behavior to the old immediate behavior of testbase - testing.db has the configured db - Fixed up the perf/* scripts
* merging 0.4 branch to trunk. see CHANGES for details. 0.3 moves to ↵Mike Bayer2007-07-271-465/+9
| | | | maintenance branch in branches/rel_0_3.
* - more docsMike Bayer2007-07-151-3/+0
| | | | | - some more query tests - removed warnings from testbase to appease the buildbots
* - test module turns warnings into exceptions so they can be tested forMike Bayer2007-07-141-0/+3
| | | | | - the two mapper PK tests should actually warn on the id column collision - reverted abc_inheritance back to normal
* - improved ability to get the "correct" and most minimal set of primary keyMike Bayer2007-07-141-0/+3
| | | | | | | columns from a join, equating foreign keys and otherwise equated columns. this is also mostly to help inheritance scenarios formulate the best choice of primary key columns. [ticket:185] - added 'bind' argument to Sequence.create()/drop(), ColumnDefault.execute()
* mssql: preliminary support for using scope_identity() with pyodbcPaul Johnston2007-07-111-0/+2
|
* - Deprecated DynamicMetaData- use ThreadLocalMetaData or MetaData insteadJason Kirtland2007-07-061-3/+3
| | | | | - Deprecated BoundMetaData- use MetaData instead - Removed DMD and BMD from documentation
* fix running tests on WindowsJonathan Ellis2007-06-011-1/+1
|
* - DB connection urls for tests can now be loaded from a configuration fileJason Kirtland2007-05-251-19/+43
| | | | | - Test runs can now --require a particular external package version - Added some 'coerce' magic to the Oracle connection factory to support use_ansi in the dburl query string
* - fixed critical issue when, after options(eagerload()) is used,Mike Bayer2007-04-181-0/+14
| | | | | | the mapper would then always apply query "wrapping" behavior for all subsequent LIMIT/OFFSET/DISTINCT queries, even if no eager loading was applied on those subsequent queries.
* - merged the "execcontext" branch, refactors engine/dialect codepathsMike Bayer2007-04-021-78/+80
| | | | | | | | | | | | | | | | | | | | - much more functionality moved into ExecutionContext, which impacted the API used by dialects to some degree - ResultProxy and subclasses now designed sanely - merged patch for #522, Unicode subclasses String directly, MSNVarchar implements for MS-SQL, removed MSUnicode. - String moves its "VARCHAR"/"TEXT" switchy thing into "get_search_list()" function, which VARCHAR and CHAR can override to not return TEXT in any case (didnt do the latter yet) - implements server side cursors for postgres, unit tests, #514 - includes overhaul of dbapi import strategy #480, all dbapi importing happens in dialect method "dbapi()", is only called inside of create_engine() for default and threadlocal strategies. Dialect subclasses have a datamember "dbapi" referencing the loaded module which may be None. - added "mock" engine strategy, doesnt require DBAPI module and gives you a "Connecition" which just sends all executes to a callable. can be used to create string output of create_all()/drop_all().
* thank you, SVN, for being completely idiotic and non-intutive. rolling back ↵Mike Bayer2007-03-301-5/+1
| | | | incorrect checkin to trunk
* current progress with exec branchMike Bayer2007-03-291-1/+5
|
* - column label and bind param "truncation" also generateMike Bayer2007-03-281-3/+6
| | | | | | | | | | | deterministic names now, based on their ordering within the full statement being compiled. this means the same statement will produce the same string across application restarts and allowing DB query plan caching to work better. - cleanup to sql.ClauseParameters since it was just falling apart, API made more explicit - many unit test tweaks to adjust for bind params not being "pre" truncated, changes to ClauseParameters
* - preliminary support for unicode table and column names added.Mike Bayer2007-03-271-1/+1
|
* "alltests" runners call testbase.main(), which takes an optional suite,Mike Bayer2007-03-151-5/+6
| | | | so that exit code is propigated
* - oracle:Mike Bayer2007-03-101-1/+1
| | | | | | | | - got binary working for any size input ! cx_oracle works fine, it was my fault as BINARY was being passed and not BLOB for setinputsizes (also unit tests werent even setting input sizes). - auto_setinputsizes defaults to True for Oracle, fixed cases where it improperly propigated bad types.
* revert old unittest patch for MSSQLRick Morrison2007-02-151-9/+7
|
* - fixed "remote_side" in testrelationonbaseclass [ticket:461]Mike Bayer2007-02-061-2/+15
| | | | | - added --reversetop arg to testbase to allow reversing the input collection for topological sorts, to better reveal dependency issues
* merged the polymorphic relationship refactoring branch in. i want to go ↵Mike Bayer2007-01-281-4/+7
| | | | | | | | | | | | | further on that branch and introduce the foreign_keys argument, and further centralize the "intelligence" about the joins and selectables into PropertyLoader so that lazyloader/sync can be simplified, but the current branch goes pretty far. - relations keep track of "polymorphic_primaryjoin", "polymorphic_secondaryjoin" which it derives from the plain primaryjoin/secondaryjoin. - lazy/eagerloaders work from those polymorphic join objects. - the join exported by PropertyLoader to Query/SelectResults is the polymorphic join, so that join_to/etc work properly. - Query builds itself against the base Mapper again, not the "polymorphic" mapper. uses the "polymorphic" version only as appropriate. this helps join_by/join_to/etc to work with polymorphic mappers. - Query will also adapt incoming WHERE criterion to the polymorphic mapper, i.e. the "people" table becomes the "person_join" automatically. - quoting has been modified since labels made out of non-case-sensitive columns could themselves require quoting..so case_sensitive defaults to True if not otherwise specified (used to be based on the identifier itself). - the test harness gets an ORMTest base class and a bunch of the ORM unit tests are using it now, decreases a lot of redundancy.
* - added a standardized test harness for ORM testsMike Bayer2007-01-271-1/+20
| | | | - added three-level mapping test. needed some massaging for postgres
* test patches from [ticket:422]Mike Bayer2007-01-231-7/+10
|
* - *slight* support for binary, but still need to figure out how to insert ↵rel_0_3_4Mike Bayer2007-01-231-1/+1
| | | | | | | reasonably large values (over 4K). requires auto_setinputsizes=True sent to create_engine(), rows must be fully fetched individually, etc.
* - create_engine() reworked to be strict about incoming **kwargs. all keywordMike Bayer2006-11-121-2/+2
| | | | | | arguments must be consumed by one of the dialect, connection pool, and engine constructors, else a TypeError is thrown which describes the full set of invalid kwargs in relation to the selected dialect/pool/engine configuration.
* added system return code to base runtestMike Bayer2006-10-271-4/+5
|
* - some new Pool utility classes, updated docsMike Bayer2006-10-241-27/+2
| | | | - "use_threadlocal" on Pool defaults to False (same as create_engine)
* integrated coverage.py into unittest suiteMike Bayer2006-10-231-8/+36
|
* assorted firebird fixes from Lele GaifaxMike Bayer2006-10-071-2/+4
|
* - specifying joins in the from_obj argument of query.select() willMike Bayer2006-09-271-1/+2
| | | | | | | | | | | | | replace the main table of the query, if the table is somewhere within the given from_obj. this makes it possible to produce custom joins and outerjoins in queries without the main table getting added twice. [ticket:315] - added join_to and outerjoin_to transformative methods to SelectResults, to build up join/outerjoin conditions based on property names. also added select_from to explicitly set from_obj parameter. - factored "results" arrays from the mapper test suite and into the "tables" mapper - added "viewonly" param to docs
* - logging is now implemented via standard python "logging" module.Mike Bayer2006-09-241-3/+15
| | | | | | | | | | | | | "echo" keyword parameters are still functional but set/unset log levels for their respective classes/instances. all logging can be controlled directly through the Python API by setting INFO and DEBUG levels for loggers in the "sqlalchemy" namespace. class-level logging is under "sqlalchemy.<module>.<classname>", instance-level logging under "sqlalchemy.<module>.<classname>.<hexid>". Test suite includes "--log-info" and "--log-debug" arguments which work independently of --verbose/--quiet. Logging added to orm to allow tracking of mapper configurations, row iteration fixes [ticket:229] [ticket:79]
* - cleanup on connection methods + documentation. custom DBAPIMike Bayer2006-08-251-3/+7
| | | | | | | | | | arguments specified in query string, 'connect_args' argument to 'create_engine', or custom creation function via 'creator' function to 'create_engine'. - added "recycle" argument to Pool, is "pool_recycle" on create_engine, defaults to 3600 seconds; connections after this age will be closed and replaced with a new one, to handle db's that automatically close stale connections [ticket:274]
* got MS-SQL support largely working, including reflection, basic types, fair ↵Mike Bayer2006-07-011-1/+1
| | | | | | amount of ORM stuff, etc. 'rowcount' label is reseved in MS-SQL and had to change in sql.py count() as well as orm.query
* inserting './lib/' into sys.path since PYTHONPATH no longer straightforward ↵Mike Bayer2006-06-291-1/+4
| | | | with latest setuptools
* fixed 'port' attribute of URL to be an integer if present [ticket:209]Mike Bayer2006-06-151-1/+1
|
* polymorphic linked list test, tests polymorphic inheritance with circular refsMike Bayer2006-05-291-2/+3
|
* extra tests...Mike Bayer2006-05-281-2/+0
|
* correction to running single named testsMike Bayer2006-05-251-1/+6
|
* merged 0.2 branch into trunk; 0.1 now in sqlalchemy/branches/rel_0_1Mike Bayer2006-05-251-76/+147
|
* added 'supports', 'unsupports' decorators to unittests so that they can all ↵Mike Bayer2006-04-291-1/+32
| | | | pass on all DBs
* merged Rick Morrison / Runar Petursson's MS-SQL module, with adjustments to ↵Mike Bayer2006-04-031-1/+3
| | | | alias schema-qualified Table objects
* Jonas Borgström's fantastic SelectRsults patch that adds dynamic list ↵Mike Bayer2006-03-311-0/+1
| | | | argument support to the mapper.select() methd. associated unit test tweaks and mapper integration.
* added oracle8 test target, sets use_ansi to falseMike Bayer2006-03-231-3/+6
| | | | got mapper, objectstore, inheritance unittest working with oracle8, tweaks to join syntax
* refactor to Compiled.get_params() to return new ClauseParameters object, a ↵Mike Bayer2006-03-131-1/+1
| | | | | | | | | | | more intelligent bind parameter dictionary that does type conversions late and preserves the unconverted value; used to fix mappers not comparing correct value in post-fetch [ticket:110] removed pre_exec assertion from oracle/firebird regarding "check for sequence/primary key value" fix to Unicode type to check for null, fixes [ticket:109] create_engine() now uses genericized parameters; host/hostname, db/dbname/database, password/passwd, etc. for all engine connections fix to select([func(column)]) so that it creates a FROM clause to the column's table, fixes [ticket:111] doc updates for column defaults, indexes, connection pooling, engine params unit tests for the above bugfixes
* engine argument on tables optionalMike Bayer2006-03-021-6/+11
| | | | | test suite uses BaseProxyEngine as a base for the tester engine documented global proxy engine
* made SchemaEngine more prominent as the base of Table associationMike Bayer2006-03-011-5/+18
| | | | | | | | | BaseProxyEngine descends from SchemaEngine fixes to sqlite/postgres reflection to use the correct engine for table lookups Table engine can be none which will default to schema.default_engine (although its still positional for now, so still needs to be explicit to make room for Columns) __init__ sets default_engine to be a blank ProxyEngine fixes to test suite to allow --db proxy.<dbname> to really test proxyengine
* more work on cycles, fleshed out tests for post_update, fix to the delete ↵Mike Bayer2006-02-271-1/+1
| | | | | | phase of a one-to-many post update closes [ticket:67]
* merged sql_rearrangement branch , refactors sql package to work standalone withMike Bayer2006-02-251-3/+0
| | | | | clause elements including tables and columns, schema package deals with "physical" representations
* somewhat of an overhaul, got alltests to work againMike Bayer2006-02-091-1/+1
|
* dont mask engine compilation errorMike Bayer2006-02-051-4/+4
|
* Rick Morrison's patch adding Smallint, Date, and Time support !Mike Bayer2006-02-041-20/+22
|