summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/test/assertsql.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2010-08-29 11:22:46 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2010-08-29 11:22:46 -0400
commit1149197a36f01dae1f8da82b7cfb73a7777e7a4a (patch)
tree3b2cacd6c9fc75c51862eb886420036b7cd08c47 /lib/sqlalchemy/test/assertsql.py
parenta635750213c346a895e417ae8e629ce924d557e8 (diff)
downloadsqlalchemy-1149197a36f01dae1f8da82b7cfb73a7777e7a4a.tar.gz
- moved out to on_before_execute, on_after_execute. not much option here,
need both forms, the wrapping thing is just silly - fixed the listen() to not re-wrap continuously.
Diffstat (limited to 'lib/sqlalchemy/test/assertsql.py')
-rw-r--r--lib/sqlalchemy/test/assertsql.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/sqlalchemy/test/assertsql.py b/lib/sqlalchemy/test/assertsql.py
index 11ad20e77..dee63a876 100644
--- a/lib/sqlalchemy/test/assertsql.py
+++ b/lib/sqlalchemy/test/assertsql.py
@@ -273,10 +273,7 @@ class SQLAssert(object):
def clear_rules(self):
del self.rules
- def execute(self, conn, clauseelement, *multiparams, **params):
- # TODO: this doesn't work. we need to execute before so that we know
- # what's happened with the parameters.
-
+ def execute(self, conn, clauseelement, multiparams, params, result):
if self.rules is not None:
if not self.rules:
assert False, "All rules have been exhausted, but further statements remain"
@@ -287,7 +284,6 @@ class SQLAssert(object):
def cursor_execute(self, conn, cursor, statement, parameters, context, executemany):
- print "RECEIVE !", statement, parameters
if self.rules:
rule = self.rules[0]
rule.process_cursor_execute(statement, parameters, context, executemany)