diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-03-01 21:20:59 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-03-01 21:20:59 +0000 |
commit | fd8d4a45ea1c2087ed3c4a86bf5f889b194fdb48 (patch) | |
tree | 5afc754c8c249c774f773476dd1d9518ad4b41e7 /test/inheritance.py | |
parent | fd8567037269ac937a6b079c6e00022abfc51149 (diff) | |
download | sqlalchemy-fd8d4a45ea1c2087ed3c4a86bf5f889b194fdb48.tar.gz |
made SchemaEngine more prominent as the base of Table association
BaseProxyEngine descends from SchemaEngine
fixes to sqlite/postgres reflection to use the correct engine for table lookups
Table engine can be none which will default to schema.default_engine (although its
still positional for now, so still needs to be explicit to make room for Columns)
__init__ sets default_engine to be a blank ProxyEngine
fixes to test suite to allow --db proxy.<dbname> to really test proxyengine
Diffstat (limited to 'test/inheritance.py')
-rw-r--r-- | test/inheritance.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/inheritance.py b/test/inheritance.py index 82d66e48c..4400cab89 100644 --- a/test/inheritance.py +++ b/test/inheritance.py @@ -139,8 +139,10 @@ class InheritTest2(testbase.AssertMixin): b = Bar('barfoo') objectstore.commit() - b.foos.append(Foo('subfoo1')) - b.foos.append(Foo('subfoo2')) + f1 = Foo('subfoo1') + f2 = Foo('subfoo2') + b.foos.append(f1) + b.foos.append(f2) objectstore.commit() objectstore.clear() @@ -150,7 +152,7 @@ class InheritTest2(testbase.AssertMixin): print l[0].foos self.assert_result(l, Bar, # {'id':1, 'data':'barfoo', 'bid':1, 'foos':(Foo, [{'id':2,'data':'subfoo1'}, {'id':3,'data':'subfoo2'}])}, - {'id':1, 'data':'barfoo', 'foos':(Foo, [{'id':2,'data':'subfoo1'}, {'id':3,'data':'subfoo2'}])}, + {'id':b.id, 'data':'barfoo', 'foos':(Foo, [{'id':f1.id,'data':'subfoo1'}, {'id':f2.id,'data':'subfoo2'}])}, ) |