summaryrefslogtreecommitdiff
path: root/test/testlib
Commit message (Collapse)AuthorAgeFilesLines
* - unit tests have been migrated from unittest to nose.Mike Bayer2009-06-1012-4263/+0
| | | | | See README.unittests for information on how to run the tests. [ticket:970]
* - removed test.testing.ORMTest, test.fixtures, and allMike Bayer2009-06-024-378/+1
| | | | dependencies on those.
* disabling triggers for Mysql since it requires SUPER privsMike Bayer2009-04-051-0/+1
|
* - coverage dumps out separate reports for individual packagesMike Bayer2009-03-291-9/+38
| | | | - other coverage tips
* - removed 2.3 compat stuffMike Bayer2009-01-061-239/+0
| | | | - updated MANIFEST for the newer build
* A few 2.3 cleanup items.Michael Trier2008-12-301-6/+1
|
* Pulled callable into testlib because path fixup is not available at the ↵Michael Trier2008-12-214-7/+10
| | | | point we need it.
* *most* py3k warnings are resolved, with the exception of the various ↵Mike Bayer2008-12-182-23/+7
| | | | | | __setslice__ related warnings I don't really know how to get rid of
* merge the test/ directory from -r5438:5439 of py3k_warnings branch. this givesMike Bayer2008-12-182-40/+837
| | | | us a 2.5-frozen copy of unittest so we're insulated from unittest changes.
* merged -r5299:5438 of py3k warnings branch. this fixes some sqlite py2.6 ↵Mike Bayer2008-12-184-2/+7
| | | | | | | | testing issues, and also addresses a significant chunk of py3k deprecations. It's mainly expicit __hash__ methods. Additionally, most usage of sets/dicts to store columns uses util-based placeholder names.
* Modified fails_on testing decorator to take a reason for the failure.Michael Trier2008-12-121-4/+5
| | | | | This should assist with helping to document the reasons for testing failures. Currently unspecified failures are defaulted to 'FIXME: unknown'.
* Access doesn't support savepoints or two-phase commit.Michael Trier2008-12-111-2/+2
|
* Implemented experimental savepoint support in mssql. There are still some ↵Michael Trier2008-12-112-2/+27
| | | | failing savepoint related tests.
* fix circular importMike Bayer2008-12-112-2/+6
|
* - PickleType now favors == comparison by default,Mike Bayer2008-12-111-4/+4
| | | | | | | if the incoming object (such as a dict) implements __eq__(). If the object does not implement __eq__() and mutable=True, a deprecation warning is raised.
* - reworked the "SQL assertion" code to something more flexible and based off ↵Mike Bayer2008-12-103-134/+309
| | | | | | of ConnectionProxy. upcoming changes to dependency.py will make use of the enhanced flexibility.
* - Improved mapper() check for non-class classes.Mike Bayer2008-12-011-1/+1
| | | | [ticket:1236]
* - switched session.save() to session.add() throughout declarative testMike Bayer2008-11-141-0/+2
| | | | | | | | - Fixed PendingDeprecationWarning involving order_by parameter on relation(). [ticket:1226] - Unit tests still filter pending deprecation warnings but have a commented-out line to temporarily disable this behavior. Tests need to be fully converted before we can turn this on.
* - Removed the 'properties' attribute of theMike Bayer2008-11-091-2/+2
| | | | | Connection object, Connection.info should be used. - Method consoliation in Connection, ExecutionContext
* removed setup_instance() from the public APIMike Bayer2008-11-081-0/+1
| | | | | | | of ClassManager, and made it a private method on _ClassInstrumentationAdapter. ClassManager's approach handles the default task with fewer function calls which chops off a few hundred calls from the pertinent profile tests.
* call count pinata partyMike Bayer2008-10-231-2/+1
|
* - The 'length' argument to all Numeric types has been renamedMike Bayer2008-08-241-0/+6
| | | | | | | | | | | | | | | | to 'scale'. 'length' is deprecated and is still accepted with a warning. [ticket:827] - The 'length' argument to MSInteger, MSBigInteger, MSTinyInteger, MSSmallInteger and MSYear has been renamed to 'display_width'. [ticket:827] - mysql._Numeric now consumes 'unsigned' and 'zerofill' from the given kw, so that the same kw can be passed along to Numeric and allow the 'length' deprecation logic to still take effect - added testlib.engines.all_dialects() to return a dialect for every db module - informix added to sqlalchemy.databases.__all__. Since other "experimental" dbs like access and sybase are there, informix should be as well.
* - fixed a bug in declarative test which was looking for old version of historyMike Bayer2008-08-191-1/+1
| | | | | | | | | | - Added "sorted_tables" accessor to MetaData, which returns Table objects sorted in order of dependency as a list. This deprecates the MetaData.table_iterator() method. The "reverse=False" keyword argument has also been removed from util.sort_tables(); use the Python 'reversed' function to reverse the results. [ticket:1033]
* merged r5018 from 0.4 branch, but using contextual_connect() (will fix in ↵Mike Bayer2008-08-101-1/+4
| | | | 0.4 too)
* - Removed 2.3 set emulations/enhancements.Jason Kirtland2008-07-157-95/+7
| | | | (sets.Set-based collections & DB-API returns still work.)
* Fixed borked testlib due to r4901.Michael Trier2008-07-081-3/+4
|
* Refactored the mock_engine in the tests so it's not duplicated in several ↵Michael Trier2008-07-081-2/+14
| | | | places. Closes #1098
* - Fleshed out Session.get_bind(), generating a couple todos: [ticket:1053], ↵Jason Kirtland2008-05-201-16/+24
| | | | | | | | [ticket:1054], [ticket:1055] - Trotted out util.pending_deprecation, replacing some 'TODO: deprecate's - Big session docstring content edit fiesta - session.py line length and whitespace non-fiesta
* Split out a couple true autoincrement/identity tests from ↵Jason Kirtland2008-05-191-0/+16
| | | | emulated-with-sequences autoincrement=True tests.
* - changed char_length() to use a fake, neutral "generic function"Mike Bayer2008-05-191-1/+1
| | | | - assert_compile() reports the dialect in use
* - Implemented generic CHAR_LENGTH for sqlite (-> LENGTH())Jason Kirtland2008-05-191-0/+1
| | | | - Updated .requires for firebird
* Minor doc fixesLele Gaifax2008-05-151-2/+2
|
* - Removed @unsupportedJason Kirtland2008-05-142-52/+103
|
* Columns now have default= and server_default=. PassiveDefault fades away.Jason Kirtland2008-05-142-2/+12
|
* Removed: all legacy users migrated.Jason Kirtland2008-05-131-224/+0
|
* - Reworked test/orm/mapperJason Kirtland2008-05-131-2/+2
| | | | | - Exposed some uncovered (and broken) functionality - Fixed [ticket:1038]
* Support for under FirebirdLele Gaifax2008-05-131-5/+6
|
* correcting dataload profiles for various testsMike Bayer2008-05-101-1/+1
|
* Test suite modernization in progress. Big changes:Jason Kirtland2008-05-095-52/+231
| | | | | | | | | | | - @unsupported now only accepts a single target and demands a reason for not running the test. - @exclude also demands an exclusion reason - Greatly expanded @testing.requires.<feature>, eliminating many decorators in the suite and signficantly easing integration of multi-driver support. - New ORM test base class, and a featureful base for mapped tests - Usage of 'global' for shared setup going away, * imports as well
* r4695 merged to trunk; trunk now becomes 0.5.Mike Bayer2008-05-0910-75/+221
| | | | 0.4 development continues at /sqlalchemy/branches/rel_0_4
* Expanded --noncomparable to cover all comparision opsJason Kirtland2008-04-251-0/+6
|
* - Avoid cProfile on 2.4 (available via lsprof?)Jason Kirtland2008-04-071-5/+7
|
* - merged -r4458:4466 of query_columns branchMike Bayer2008-04-071-0/+4
| | | | | | | - this branch changes query.values() to immediately return an iterator, adds a new "aliased" construct which will be the primary method to get at aliased columns when using values() - tentative ORM versions of _join and _outerjoin are not yet public, would like to integrate with Query better (work continues in the branch) - lots of fixes to expressions regarding cloning and correlation. Some apparent ORM bug-workarounds removed. - to fix a recursion issue with anonymous identifiers, bind parameters generated against columns now just use the name of the column instead of the tablename_columnname label (plus the unique integer counter). this way expensive recursive schemes aren't needed for the anon identifier logic. This, as usual, impacted a ton of compiler unit tests which needed a search-n-replace for the new bind names.
* - Experimental: prefer cProfile over hotspot for 2.5+Jason Kirtland2008-04-033-34/+166
| | | | | - The latest skirmish in the battle against zoomark and sanity: 3rd party code is factored out in the function call count canary tests
* some test fixup for oracleMike Bayer2008-04-021-4/+8
|
* - added verbose activity to profiling.function_call_countMike Bayer2008-04-011-0/+5
| | | | | - simplified oracle non-ansi join generation, removed hooks from base compiler - removed join() call from _label generation, fixed repeat label gen
* - Squashed 2.4 generators.Jason Kirtland2008-04-011-1/+3
|
* - merge() may actually work now, though we've heard that before...Mike Bayer2008-04-011-12/+4
| | | | | | | - merge() uses the priamry key attributes on the object if _instance_key not present. so merging works for instances that dont have an instnace_key, will still issue UPDATE for existing rows. - improved collection behavior for merge() - will remove elements from a destination collection that are not in the source. - fixed naive set-mutation issue in Select._get_display_froms - simplified fixtures.Base a bit
* - merged with_polymorphic branch, which was merged with query_columns branchMike Bayer2008-03-292-3/+3
| | | | | | | | | | | | | | | | | - removes everything to do with select_table, which remains as a keyword argument synonymous with with_polymorphic=('*', select_table). - all "polymorphic" selectables find their way to Query by way of _set_select_from() now, so that all joins/aliasing/eager loads/etc. is handled consistently. Mapper has methods for producing polymorphic selectables so that Query and eagerloaders alike can get to them. - row aliasing simplified, so that they don't need to nest. they only need the source selectable and adapt to whatever incoming columns they get. - Query is more egalitarian about mappers/columns now. Still has a strong sense of "entity zero", but also introduces new unpublished/experimental _values() method which sets up a columns-only query. - Query.order_by() and Query.group_by() take *args now (also still take a list, will likely deprecate in 0.5). May want to do this for select() as well. - the existing "check for False discriminiator" "fix" was not working completely, added coverage - orphan detection was broken when the target object was a subclass of the mapper with the orphaned relation, fixed that too.
* - the "owner" keyword on Table is now deprecated, and isMike Bayer2008-03-221-3/+6
| | | | | | | | | | | | | | | | | | | | exactly synonymous with the "schema" keyword. Tables can now be reflected with alternate "owner" attributes, explicitly stated on the Table object or not using "schema". - all of the "magic" searching for synonyms, DBLINKs etc. during table reflection are disabled by default unless you specify "oracle_resolve_synonyms=True" on the Table object. Resolving synonyms necessarily leads to some messy guessing which we'd rather leave off by default. When the flag is set, tables and related tables will be resolved against synonyms in all cases, meaning if a synonym exists for a particular table, reflection will use it when reflecting related tables. This is stickier behavior than before which is why it's off by default.