summaryrefslogtreecommitdiff
path: root/test/testlib/testing.py
Commit message (Collapse)AuthorAgeFilesLines
* - unit tests have been migrated from unittest to nose.Mike Bayer2009-06-101-919/+0
| | | | | See README.unittests for information on how to run the tests. [ticket:970]
* - removed test.testing.ORMTest, test.fixtures, and allMike Bayer2009-06-021-61/+0
| | | | dependencies on those.
* Pulled callable into testlib because path fixup is not available at the ↵Michael Trier2008-12-211-3/+1
| | | | point we need it.
* merge the test/ directory from -r5438:5439 of py3k_warnings branch. this givesMike Bayer2008-12-181-40/+33
| | | | 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-181-0/+2
| | | | | | | | 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'.
* Implemented experimental savepoint support in mssql. There are still some ↵Michael Trier2008-12-111-0/+24
| | | | failing savepoint related tests.
* fix circular importMike Bayer2008-12-111-1/+4
|
* - 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-101-129/+25
| | | | | | of ConnectionProxy. upcoming changes to dependency.py will make use of the enhanced flexibility.
* - 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
* - 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]
* - Removed 2.3 set emulations/enhancements.Jason Kirtland2008-07-151-1/+1
| | | | (sets.Set-based collections & DB-API returns still work.)
* - 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
* - changed char_length() to use a fake, neutral "generic function"Mike Bayer2008-05-191-1/+1
| | | | - assert_compile() reports the dialect in use
* Minor doc fixesLele Gaifax2008-05-151-2/+2
|
* - Removed @unsupportedJason Kirtland2008-05-141-3/+44
|
* Columns now have default= and server_default=. PassiveDefault fades away.Jason Kirtland2008-05-141-2/+3
|
* - Reworked test/orm/mapperJason Kirtland2008-05-131-2/+2
| | | | | - Exposed some uncovered (and broken) functionality - Fixed [ticket:1038]
* correcting dataload profiles for various testsMike Bayer2008-05-101-1/+1
|
* Test suite modernization in progress. Big changes:Jason Kirtland2008-05-091-29/+147
| | | | | | | | | | | - @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-091-34/+100
| | | | 0.4 development continues at /sqlalchemy/branches/rel_0_4
* - Squashed 2.4 generators.Jason Kirtland2008-04-011-1/+3
|
* - merged with_polymorphic branch, which was merged with query_columns branchMike Bayer2008-03-291-2/+2
| | | | | | | | | | | | | | | | | - 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.
* Undoing patch #994, for now; more testing needed. Sorry. Also modifying ↵Catherine Devlin2008-03-201-1/+10
| | | | test for query equivalence to account for underscoring of bind variables.
* (Whoops,)Jason Kirtland2008-03-111-1/+1
|
* - Take broken mysql 4.1 column defaulting into account.Jason Kirtland2008-03-111-0/+4
|
* - increased assert_tabels_equal failure verbosityJason Kirtland2008-03-111-1/+1
|
* corrected assert_raises to be consistent with existing assertRaises() ↵Mike Bayer2008-03-061-4/+3
| | | | unittest method
* - added assert_raises() to TestBase classMike Bayer2008-03-061-2/+10
| | | | | | - session.refresh() and session.expire() raise an error when called on instances which are not persistent within the session - session._validate_persistent() properly raises an error for false check
* - modernized cascade.py testsMike Bayer2008-02-171-1/+5
| | | | | | | | | - your cries have been heard: removing a pending item from an attribute or collection with delete-orphan expunges the item from the session; no FlushError is raised. Note that if you session.save()'ed the pending item explicitly, the attribute/collection removal still knocks it out.
* - updated the naming scheme of the base test classes in test/testlib/testing.py;Mike Bayer2008-02-111-6/+6
| | | | | tests extend from either TestBase or ORMTest, using additional mixins for special assertion methods as needed
* - Table columns and constraints can be overridden on aMike Bayer2008-02-101-5/+36
| | | | | | | | an existing table (such as a table that was already reflected) using the 'useexisting=True' flag, which now takes into account the arguments passed along with it. - fixed one element of [ticket:910] - refactored reflection test
* - added generative where(<criterion>) method to delete()Mike Bayer2008-02-081-2/+2
| | | | | | | and update() constructs which return a new object with criterion joined to existing criterion via AND, just like select().where(). - compile assertions use assertEquals()
* - Added a simple @future test marker.Jason Kirtland2008-01-281-0/+19
|
* - Fixed little think-o in fails_ifJason Kirtland2008-01-281-1/+1
|
* - 2.3 fixup part three: 100% on postgres, mysqlJason Kirtland2008-01-221-0/+20
|
* - 2.3 fixup, part two: 100% passing for sqliteJason Kirtland2008-01-211-0/+31
| | | | | | | | | - added 2.4-style binops to util.Set on 2.3 - OrderedSets pickle on 2.3 - more lib/sqlalchemy set vs Set corrections - fixed InstrumentedSet.discard for 2.3 - set, sorted compatibility for test suite - added testing.fails_if decorator
* - Restored 2.3 compat. in lib/sqlalchemyJason Kirtland2008-01-191-31/+11
| | | | | | | - Part one of test suite fixes to run on 2.3 Lots of failures still around sets; sets.Set differs from __builtin__.set particularly in the binops. We depend on set extensively now and may need to provide a corrected sets.Set subclass on 2.3.
* - testbase is gone, replaced by testenvJason Kirtland2008-01-121-1/+3
| | | | | | - 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
* - Undeclared SAWarnings are now fatal to tests as well.Jason Kirtland2008-01-121-11/+52
| | | | - Fixed typo that was killing runs of individual named tests.
* Reworked r4042- undeclared deprecation warnings are now *fatal* to tests. ↵Jason Kirtland2008-01-101-15/+57
| | | | No surprises.
* test suite deprecation rampageJason Kirtland2008-01-091-0/+13
|
* Add Firebird to the list of DBs that needs explicit sequencesLele Gaifax2007-12-181-2/+1
|
* - Removed @testing.supported. Dialects in development or maintained outsideJason Kirtland2007-12-131-42/+108
| | | | | | | | | | | the tree can now run the full suite of tests out of the box. - Migrated most @supported to @fails_on, @fails_on_everything_but, or (last resort) @unsupported. @fails_on revealed a slew of bogus test skippage, which was corrected. - Added @fails_on_everything_but. Yes, the first usage *was* "fails_on_everything_but('postgres')". How did you guess! - Migrated @supported in dialect/* to the new test-class attribute __only_on__. - Test classes can also have __unsupported_on__ and __excluded_on__.
* - fixed remainder of [ticket:853]Mike Bayer2007-11-071-1/+1
| | | | | | - bindparam 'shortname' is deprecated - fixed testing.assert_compile() to actually generate bind param dict before asserting - added bind param assertions to CRUDTest.test_update
* Added testing.fails_on('db') failure-asserter.Jason Kirtland2007-11-051-17/+50
|
* Tweaks for assert_unordered_resultJason Kirtland2007-11-011-2/+8
|
* Added AssertMixin.assert_unordered_resultJason Kirtland2007-11-011-3/+48
|