diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-02-28 23:18:43 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-02-28 23:18:43 +0000 |
commit | a4ba9b5414ee3d18667b67d57a361845a8354d3c (patch) | |
tree | c6df8ddb0ffa2726c7166d0808c57df8bbdd632e /test/proxy_engine.py | |
parent | 7c1bb1f7a23464191461f5793c323dd7637ba594 (diff) | |
download | sqlalchemy-a4ba9b5414ee3d18667b67d57a361845a8354d3c.tar.gz |
oid inits at compilation time/when needed again, added a unit test
Diffstat (limited to 'test/proxy_engine.py')
-rw-r--r-- | test/proxy_engine.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/proxy_engine.py b/test/proxy_engine.py index 2ef19fc07..14cd1902b 100644 --- a/test/proxy_engine.py +++ b/test/proxy_engine.py @@ -22,6 +22,17 @@ class User(object): pass +class ConstructTest(PersistTest): + """tests that we can build SQL constructs without engine-specific parameters, particulary + oid_column, being needed, as the proxy engine is usually not connected yet.""" + def test_join(self): + engine = ProxyEngine() + t = Table('table1', engine, + Column('col1', Integer, primary_key=True)) + t2 = Table('table2', engine, + Column('col2', Integer, ForeignKey('table1.col1'))) + j = join(t, t2) + class ProxyEngineTest1(PersistTest): def setUp(self): |