summaryrefslogtreecommitdiff
path: root/test/orm/test_expire.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix many typos throughout the codebasepr/85Alex Gaynor2014-04-261-3/+3
| | | | Found using: https://github.com/intgr/topy
* - some test fixesMike Bayer2014-01-191-1/+1
| | | | - clean up some shenanigans in reflection
* - remove informix dialect, moved out to ↵Mike Bayer2013-11-171-1/+0
| | | | | | https://bitbucket.org/zzzeek/sqlalchemy_informixdb - remove informix, maxdb, access symbols from tests etc.
* more tests regarding expiry, deferralMike Bayer2013-08-171-1/+57
|
* some tests regarding how newly inserted rows are treated as far as fetch on ↵Mike Bayer2013-08-171-1/+91
| | | | access
* - add predictable_gc to a few more tests showing up on pypyMike Bayer2013-08-041-5/+5
|
* - the raw 2to3 runMike Bayer2013-04-271-1/+1
| | | | - went through examples/ and cleaned out excess list() calls
* trying different approaches to test layout. in this one, the testing modulesMike Bayer2012-09-271-6/+6
| | | | | | | become an externally usable package but still remains within the main sqlalchemy parent package. in this system, we use kind of an ugly hack to get the noseplugin imported outside of the "sqlalchemy" package, while still making it available within sqlalchemy for usage by third party libraries.
* -whitespace bonanza, contdMike Bayer2012-07-281-16/+16
|
* fix the testMike Bayer2011-07-311-10/+11
|
* - Load of a deferred() attribute on an objectMike Bayer2011-07-311-13/+59
| | | | | | | | | where row can't be located raises ObjectDeletedError instead of failing later on; improved the message in ObjectDeletedError to include other conditions besides a simple "delete". [ticket:2191] - break up test_get_refreshes() in test_expire
* - move all the comments that got shoved below the fixture grabs back upMike Bayer2011-03-271-13/+23
|
* - remove test.sql._base, test.engine._base, test.orm._base, move those ↵Mike Bayer2011-03-271-3/+4
| | | | | | | classes to a new test.lib.fixtures module - move testing.TestBase to test.lib.fixtures - massive search and replace
* - move all the setup_classes(cls) and setup_mappers(cls) to use aMike Bayer2011-03-271-1/+1
| | | | | local cls.Basic, cls.Comparable base class so that there is no ambiguity or hash identity behaviors getting in the way of class registration.
* - remove @testing.resolve_artifact_names, replace with direct attributeMike Bayer2011-03-261-44/+156
| | | | | | | access to the cls/self.tables/classes registries - express orm/_base.py ORMTest in terms of engine/_base.py TablesTest, factor out common steps into TablesTest, remove AltEngineTest as a separate class. will further consolidate these base classes
* blow away some globals in the search for what makes resolve_artifact_names ↵Mike Bayer2011-03-161-2/+0
| | | | fail (possibly when there's already globals in the way...)
* corrected a bunch of spelling typosDiana Clarke2011-02-281-2/+2
|
* - whitespace removal bonanzaMike Bayer2011-01-021-40/+40
|
* - merge default tipMike Bayer2010-12-051-4/+9
|\
| * - ordering for tests, [ticket:1888]Mike Bayer2010-12-041-4/+9
| |
| * - Backport of "optimized get" fix from 0.7,Mike Bayer2010-12-041-5/+38
| | | | | | | | | | improves the generation of joined-inheritance "load expired row" behavior. [ticket:1992]
* | - added strictness to the optimized load, [ticket:1992]Mike Bayer2010-12-031-5/+38
| |
* | merge backoutMike Bayer2010-11-281-4/+1
|\ \
| * | after some usage, its clear that [ticket:1974] should not be implemented. ↵Mike Bayer2010-11-281-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | backrefs add to collections so its expected that collection membership would mirror in session membership. Backed out changeset e836366c843cd64a0df569582534868e3fb00f3b
* | | - sqlalchemy.test and nose plugin moves back to being entirelyMike Bayer2010-11-281-5/+5
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | outside of "sqlalchemy" and under "test/". Rationale: - coverage plugin works without issue, without need for an awkward additional package install - command line for "nosetests" isn't polluted with SQLAlchemy options [ticket:1949]
| * | - move sqlalchemy.test to test.libMike Bayer2010-11-151-5/+5
| |/
* | - cascade_backrefs flag on relationship() now set to False by default.Mike Bayer2010-11-281-1/+4
|/ | | | [ticket:1974]
* - An object that's been deleted now gets a flagMike Bayer2010-08-261-0/+4
| | | | | | | | | | | | 'deleted', which prohibits the object from being re-add()ed to the session, as previously the object would live in the identity map silently until its attributes were accessed. The make_transient() function now resets this flag along with the "key" flag. - make_transient() can be safely called on an already transient instance.
* - An instance which is moved to "transient", hasMike Bayer2010-06-301-0/+16
| | | | | | | | | | | | an incomplete or missing set of primary key attributes, and contains expired attributes, will raise an InvalidRequestError if an expired attribute is accessed, instead of getting a recursion overflow. - make_transient() removes all "loader" callables from the state being made transient, removing any "expired" state - all unloaded attributes reset back to undefined, None/empty on access.
* fix pk violation errorMike Bayer2010-03-301-1/+1
|
* - Session.refresh() now does an equivalent expire()Mike Bayer2010-03-291-3/+55
| | | | | | | | | | | | | | | | on the given instance first, so that the "refresh-expire" cascade is propagated. Previously, refresh() was not affected in any way by the presence of "refresh-expire" cascade. This is a change in behavior versus that of 0.6beta2, where the "lockmode" flag passed to refresh() would cause a version check to occur. Since the instance is first expired, refresh() always upgrades the object to the most recent version. - The 'refresh-expire' cascade, when reaching a pending object, will expunge the object if the cascade also includes "delete-orphan", or will simply detach it otherwise. [ticket:1754]
* - converted all lazy=True|False|None to 'select'|'joined'|'noload'Mike Bayer2010-03-241-10/+10
| | | | | - converted all eager to joined in examples - fixed beaker/advanced.py to reference RelationshipCache
* - To accomodate the fact that there are now two kinds of eagerMike Bayer2010-03-241-5/+5
| | | | | | | | | | | | | | | | loading available, the new names for eagerload() and eagerload_all() are joinedload() and joinedload_all(). The old names will remain as synonyms for the foreseeable future. - The "lazy" flag on the relationship() function now accepts a string argument for all kinds of loading: "select", "joined", "subquery", "noload" and "dynamic", where the default is now "select". The old values of True/ False/None still retain their usual meanings and will remain as synonyms for the foreseeable future. - Added documentation to tutorial,mapper doc, api docs for subqueryload, subqueryload_all, and other options.
* - The official name for the relation() function is nowMike Bayer2010-03-171-25/+25
| | | | | | relationship(), to eliminate confusion over the relational algebra term. relation() however will remain available in equal capacity for the foreseeable future. [ticket:1740]
* Gave the "state" internals a good solidMike Bayer2010-02-141-2/+130
| | | | | cleanup with less complexity, datamembers, method calls, blank dictionary creates.
* - Now uses sqlalchemy.orm.exc.DetachedInstanceError when anMike Bayer2010-02-071-5/+5
| | | | | | attribute load or refresh action fails due to object being detached from any Session. UnboundExecutionError is specific to engines bound to sessions and statements.
* merge 0.6 series to trunk.Mike Bayer2009-08-061-2/+2
|
* - unit tests have been migrated from unittest to nose.Mike Bayer2009-06-101-0/+916
See README.unittests for information on how to run the tests. [ticket:970]