summaryrefslogtreecommitdiff
path: root/test/engine/test_ddlevents.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2009-10-12 00:11:00 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2009-10-12 00:11:00 +0000
commitd6239f2262f44cdf1c87d2ded28d0fe45ad8963d (patch)
tree9bca598e26cbd0108a9ab9d9419fc697f1024bc8 /test/engine/test_ddlevents.py
parent114ad36894ab37280106feb15e5421ac124c6834 (diff)
downloadsqlalchemy-d6239f2262f44cdf1c87d2ded28d0fe45ad8963d.tar.gz
- added "ddl" argument to the "on" callable of DDLElement [ticket:1538]
- fixed the imports in the "postgres" cleanup dialect - renamed "schema_item" attribute/argument of DDLElement to "target".
Diffstat (limited to 'test/engine/test_ddlevents.py')
-rw-r--r--test/engine/test_ddlevents.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/engine/test_ddlevents.py b/test/engine/test_ddlevents.py
index 6fe170a23..2e5817c01 100644
--- a/test/engine/test_ddlevents.py
+++ b/test/engine/test_ddlevents.py
@@ -302,7 +302,7 @@ class DDLExecutionTest(TestBase):
assert list(r) == [(1,)], py
for py in ('ddl.execute()',
- 'ddl.execute(schema_item=table)'):
+ 'ddl.execute(target=table)'):
try:
r = eval(py)
assert False
@@ -312,7 +312,7 @@ class DDLExecutionTest(TestBase):
for bind in engine, cx:
ddl.bind = bind
for py in ('ddl.execute()',
- 'ddl.execute(schema_item=table)'):
+ 'ddl.execute(target=table)'):
r = eval(py)
assert list(r) == [(1,)], py
@@ -358,8 +358,8 @@ class DDLTest(TestBase, AssertsCompiledSQL):
assert DDL('')._should_execute('x', tbl, cx)
assert DDL('', on=target)._should_execute('x', tbl, cx)
assert not DDL('', on='bogus')._should_execute('x', tbl, cx)
- assert DDL('', on=lambda x,y,z: True)._should_execute('x', tbl, cx)
- assert(DDL('', on=lambda x,y,z: z.engine.name != 'bogus').
+ assert DDL('', on=lambda d, x,y,z: True)._should_execute('x', tbl, cx)
+ assert(DDL('', on=lambda d, x,y,z: z.engine.name != 'bogus').
_should_execute('x', tbl, cx))
def test_repr(self):