Diana Clarke
40071dbda4
initializing _labels to an empty list so that the other methods don't throw exceptions in the None labels case, but rather return (), [], or {}. this is not backwards compatible, but doubt anyone is relying on those exceptions #2601
2012-11-17 15:28:50 -05:00
Diana Clarke
dbdd0fdd48
adding _fields, _asdict() to KeyedTuple #2601
2012-11-17 14:55:26 -05:00
Diana Clarke
e469529a1d
adding tests for KeyedTuple, pep8 pass
2012-11-17 09:51:12 -05:00
Diana Clarke
8a4ab8a4db
oops! python 3 doesn't do the rich comparison cmp thing
2012-11-14 23:25:09 -05:00
Diana Clarke
f0e19297ee
__sub__ was declared twice, just increasing test coverage before I change anything
2012-11-13 18:51:35 -05:00
Mike Bayer
20cdc64588
trying different approaches to test layout. in this one, the testing modules
...
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.
2012-09-27 02:37:33 -04:00
Mike Bayer
22ba1c43b7
-whitespace bonanza, contd
2012-07-28 17:05:50 -04:00
Mike Bayer
c5f8241006
remove WeakIdentityMapping tests
2012-06-24 02:29:08 -04:00
Mike Bayer
ff0fb31bf2
- merge attribute flag overhaul for [ticket:2358]
2012-04-23 11:45:06 -04:00
Mike Bayer
a8dc787ff0
- [feature] IdentitySet supports the - operator
...
as the same as difference(), handy when dealing
with Session.dirty etc. [ticket:2301]
2011-12-06 13:22:59 -05:00
Mike Bayer
3daae3e5b6
- Added an improved repr() to TypeEngine objects
...
that will only display constructor args which
are positional or kwargs that deviate
from the default. [ticket:2209]
2011-07-04 13:56:17 -04:00
Mike Bayer
7b24e458c7
- move all the comments that got shoved below the fixture grabs back up
2011-03-27 17:19:00 -04:00
Mike Bayer
68a350d462
- remove test.sql._base, test.engine._base, test.orm._base, move those classes to a new test.lib.fixtures module
...
- move testing.TestBase to test.lib.fixtures
- massive search and replace
2011-03-27 16:27:27 -04:00
Mike Bayer
b1b8e7defd
- alex gaynor's latest batch of pypy test fixes
2011-03-16 13:04:07 -04:00
Mike Bayer
eee9b55f0c
rename 'frozendict' to 'immutabledict', since 'frozen' implies hashability
...
like frozenset which isn't really the purpose of 'immutabledict' (could be someday,
in which case, we'd change the name back :) )
2011-01-20 13:32:59 -05:00
Mike Bayer
350aed3fdb
- whitespace removal bonanza
2011-01-02 14:23:42 -05:00
Mike Bayer
f1e54a69fb
- merge default tip
2010-12-05 14:56:26 -05:00
Mike Bayer
77f641429f
- Fixed operator precedence rules for multiple
...
chains of a single non-associative operator.
I.e. "x - (y - z)" will compile as "x - (y - z)"
and not "x - y - z". Also works with labels,
i.e. "x - (y - z).label('foo')"
[ticket:1984]
- Single element tuple expressions inside an IN clause
parenthesize correctly, also from [ticket:1984],
added tests for PG
- re-fix again importlater, [ticket:1983]
2010-11-25 12:20:13 -05:00
Mike Bayer
e1402efb19
- move sqlalchemy.test to test.lib
2010-11-15 19:37:50 -05:00
Mike Bayer
f2b43da1a8
tidy test/base, test/ex, test/ext
2010-07-11 13:41:38 -04:00
Mike Bayer
0adf381d99
- Fixed @memoized_property and @memoized_instancemethod
...
decorators so that Sphinx documentation picks up
these attributes and methods, such as
ResultProxy.inserted_primary_key. [ticket:1830]
2010-06-19 14:08:20 -04:00
Mike Bayer
cfe9fadc61
change the weakkeydict to be just an LRU cache. Add tests
...
for the "many combinations of UPDATE keys" issue.
2010-05-31 11:56:08 -04:00
Chris Withers
165eda5733
a handy @classproperty decorator
2010-02-23 17:17:08 +00:00
Mike Bayer
154f5a9434
generalized "test all the picklers" iterator works cross platform
2010-02-22 16:35:35 +00:00
Michael Trier
8c0567ea83
Fixed cPickle problem in Python3.
2010-02-20 23:08:18 +00:00
Mike Bayer
0b185fc84f
- make frozendict serializable
...
- serialize tests use HIGHEST_PROTOCOL
2010-01-28 22:47:25 +00:00
Mike Bayer
e7241263aa
python3k fixes
2009-08-09 20:50:46 +00:00
Mike Bayer
8fc5005dfe
merge 0.6 series to trunk.
2009-08-06 21:11:27 +00:00
Mike Bayer
45cec095b4
- unit tests have been migrated from unittest to nose.
...
See README.unittests for information on how to run
the tests. [ticket:970]
2009-06-10 21:18:24 +00:00