summaryrefslogtreecommitdiff
path: root/test/base/utils.py
Commit message (Collapse)AuthorAgeFilesLines
* - unit tests have been migrated from unittest to nose.Mike Bayer2009-06-101-959/+0
| | | | | See README.unittests for information on how to run the tests. [ticket:970]
* Added copy and __copy__ methods to the OrderedDict. Fixes #1377.Michael Trier2009-04-131-1/+13
|
* WeakCompositeKey was coded incorrectly and was not weakly referencing ↵Mike Bayer2009-01-171-1/+1
| | | | anything. However when repaired, the usage within RelationLoader._create_joins() still creates cycles between key elements and the value placed in the dict. In the interests of risk reduction, WCK is now removed and the two caches it was used for are now non-cached. Speed comparisons with one join/eager-heavy web application show no noticeable effect in response time.
* emacsJonathan Ellis2008-12-311-0/+4
|
* merged -r5299:5438 of py3k warnings branch. this fixes some sqlite py2.6 ↵Mike Bayer2008-12-181-0/+27
| | | | | | | | 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.
* - util.flatten_iterator() func doesn't interpret strings withMike Bayer2008-10-311-0/+15
| | | | __iter__() methods as iterators, such as in pypy [ticket:1077].
* a much easier way to ArgSingletonMike Bayer2008-10-121-22/+0
|
* - Ignore old-style classes when building inheritance graphs. [ticket:1078]Jason Kirtland2008-08-151-0/+35
|
* - Removed 2.3 set emulations/enhancements.Jason Kirtland2008-07-151-6/+4
| | | | (sets.Set-based collections & DB-API returns still work.)
* Added default support to OrderedDict.pop [ticket:585]Jason Kirtland2008-07-101-0/+16
|
* - consider args[0] as self when introspecting def(*args): ... [ticket:1091]Jason Kirtland2008-06-291-2/+2
|
* r4695 merged to trunk; trunk now becomes 0.5.Mike Bayer2008-05-091-62/+418
| | | | 0.4 development continues at /sqlalchemy/branches/rel_0_4
* - Pool listeners may now be specified as a duck-type of PoolListener or a ↵Jason Kirtland2008-04-041-0/+94
| | | | dict of callables, your choice.
* - symbols now depickle properlyJason Kirtland2008-03-191-0/+31
| | | | - fixed some symbol __new__ abuse
* - updated the naming scheme of the base test classes in test/testlib/testing.py;Mike Bayer2008-02-111-4/+4
| | | | | tests extend from either TestBase or ORMTest, using additional mixins for special assertion methods as needed
* - IdentitySet binops no longer accept plain sets.Jason Kirtland2008-01-241-3/+20
|
* Corrected behavior of get_cls_kwargs and friendsJason Kirtland2008-01-241-0/+67
|
* - 2.3 fixup, part two: 100% passing for sqliteJason Kirtland2008-01-211-2/+2
| | | | | | | | | - 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-1/+1
| | | | | | | - 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-10/+9
| | | | | | - 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
* - merged instances_yields branch r3908:3934, minus the "yield" part which ↵Mike Bayer2007-12-141-0/+12
| | | | | | | | | | | | | remains slightly problematic - cleanup of mapper._instance, query.instances(). mapper identifies objects which are part of the current load using a app-unique id on the query context. - attributes refactor; attributes now mostly use copy-on-modify instead of copy-on-load behavior, simplified get_history(), added a new set of tests - fixes to OrderedSet such that difference(), intersection() and others can accept an iterator - OrderedIdentitySet passes in OrderedSet to the IdentitySet superclass for usage in difference/intersection/etc. operations so that these methods actually work with ordering behavior. - query.order_by() takes into account aliased joins, i.e. query.join('orders', aliased=True).order_by(Order.id) - cleanup etc.
* - Raise an error when assigning a bogusly keyed dictionary to one of the ↵Jason Kirtland2007-12-141-5/+77
| | | | | | | builtin dict-based collection types [ticket:886] - Collections gain a @converter framework for flexible validation and adaptation of bulk assignment - Bogus bulk assignments now raise TypeError instead of exceptions.ArgumentError
* Added util.IdentitySet to support [ticket:676] and [ticket:834]Jason Kirtland2007-10-311-2/+139
|
* - fixed clear_mappers() behavior to better clean up after itselfMike Bayer2007-10-271-0/+22
|
* - omitted 'table' and 'column' from 'from sqlalchemy import *'Jason Kirtland2007-08-211-6/+6
| | | | | | | - also omitted all modules and classes that aren't expicitly public - omitted 'Smallinteger' (small i), but it's still in schema - omitted NullType-related items from types.__all__ - patched up a few tests to use sql.table and sql.column, other related.
* merging 0.4 branch to trunk. see CHANGES for details. 0.3 moves to ↵Mike Bayer2007-07-271-0/+67
maintenance branch in branches/rel_0_3.