diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-07-11 00:36:32 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-07-11 00:36:32 +0000 |
| commit | 7d91bebccc0f3a7f68a17692b41a265126316e17 (patch) | |
| tree | b8e20d2509ce2d7c4db73bf0f63ce1b20eb115b6 /test | |
| parent | f1b164df9ff1399c8c39c39d5053d3c9c1e48ba7 (diff) | |
| download | sqlalchemy-7d91bebccc0f3a7f68a17692b41a265126316e17.tar.gz | |
sqlite detects version and disables CAST if version < 3.2.3
fixes to unittests, mapper extension to work better with setting/unsetting extensions
objectstore objects get 'session' attribute
Diffstat (limited to 'test')
| -rw-r--r-- | test/ext/activemapper.py | 2 | ||||
| -rw-r--r-- | test/orm/manytomany.py | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/test/ext/activemapper.py b/test/ext/activemapper.py index 2a44f8e5b..85466e29b 100644 --- a/test/ext/activemapper.py +++ b/test/ext/activemapper.py @@ -61,7 +61,7 @@ class testcase(testbase.PersistTest): activemapper.metadata.connect(testbase.db) activemapper.create_tables() - + def tearDownAll(self): clear_mappers() activemapper.drop_tables() diff --git a/test/orm/manytomany.py b/test/orm/manytomany.py index 577903d47..7f1aa7ef7 100644 --- a/test/orm/manytomany.py +++ b/test/orm/manytomany.py @@ -83,6 +83,8 @@ class M2MTest(testbase.AssertMixin): place_thingy.drop() place.drop() transition.drop() + objectstore.clear() + clear_mappers() #testbase.db.tables.clear() self.uninstall_threadlocal() @@ -234,6 +236,8 @@ class M2MTest2(testbase.AssertMixin): enrolTbl.drop() studentTbl.drop() courseTbl.drop() + objectstore.clear() + clear_mappers() #testbase.db.tables.clear() self.uninstall_threadlocal() @@ -311,6 +315,8 @@ class M2MTest3(testbase.AssertMixin): c2a1.drop() a.drop() c.drop() + objectstore.clear() + clear_mappers() #testbase.db.tables.clear() self.uninstall_threadlocal() |
