diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-02-17 18:13:14 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-02-17 18:13:14 +0000 |
commit | 3e6e61dbe7b13be851e78db4280565f84c874c35 (patch) | |
tree | 8adbdc77a8294b59c57704d967a4edf7e1d34cd9 /test/testlib/testing.py | |
parent | 1aebdb231f395aa68bd1767ffd897189107e070a (diff) | |
download | sqlalchemy-3e6e61dbe7b13be851e78db4280565f84c874c35.tar.gz |
- modernized cascade.py tests
- 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.
Diffstat (limited to 'test/testlib/testing.py')
-rw-r--r-- | test/testlib/testing.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/testlib/testing.py b/test/testlib/testing.py index 8a3028799..1d7062c88 100644 --- a/test/testlib/testing.py +++ b/test/testlib/testing.py @@ -648,11 +648,15 @@ class ORMTest(TestBase, AssertsExecutionResults): _otest_metadata.bind = config.db self.define_tables(_otest_metadata) _otest_metadata.create_all() + self.setup_mappers() self.insert_data() def define_tables(self, _otest_metadata): raise NotImplementedError() - + + def setup_mappers(self): + pass + def insert_data(self): pass |