[CalendarServer-changes] [7647] CalendarServer/trunk/twext/enterprise/dal/test/test_sqlsyntax.py
source_changes at macosforge.org
source_changes at macosforge.org
Wed Jun 22 12:56:36 PDT 2011
Revision: 7647
http://trac.macosforge.org/projects/calendarserver/changeset/7647
Author: cdaboo at apple.com
Date: 2011-06-22 12:56:35 -0700 (Wed, 22 Jun 2011)
Log Message:
-----------
Missing test for last change to syntax.py.
Modified Paths:
--------------
CalendarServer/trunk/twext/enterprise/dal/test/test_sqlsyntax.py
Modified: CalendarServer/trunk/twext/enterprise/dal/test/test_sqlsyntax.py
===================================================================
--- CalendarServer/trunk/twext/enterprise/dal/test/test_sqlsyntax.py 2011-06-22 18:57:10 UTC (rev 7646)
+++ CalendarServer/trunk/twext/enterprise/dal/test/test_sqlsyntax.py 2011-06-22 19:56:35 UTC (rev 7647)
@@ -560,7 +560,7 @@
enough, as the code needs to actually retrieve the values from the out
parameters.
"""
- conn, pool, factory = self.simulateOracleConnection()
+ conn, _ignore_pool, factory = self.simulateOracleConnection()
i = Insert({self.schema.FOO.BAR: 40,
self.schema.FOO.BAZ: 50},
Return=(self.schema.FOO.BAR, self.schema.FOO.BAZ))
@@ -706,7 +706,13 @@
"delete from FOO where BAR = ?", [12])
)
+ self.assertEquals(
+ Delete(self.schema.FOO,
+ Where=None).toSQL(),
+ SQLFragment("delete from FOO")
+ )
+
def test_lock(self):
"""
L{Lock.exclusive} generates a ('lock table') statement, locking the
@@ -895,7 +901,7 @@
other statement types as well, specifically those with 'returning'
clauses.
"""
- conn, pool, factory = self.simulateOracleConnection()
+ conn, _ignore_pool, factory = self.simulateOracleConnection()
# Add 2 cursor variable values so that these will be used by
# FakeVariable.getvalue.
factory.varvals.extend([None, None])
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110622/62c02e68/attachment.html>
More information about the calendarserver-changes
mailing list