[z3-checkins] r18248 -
z3/sqlos/branch/jinty-3.0-fix_the_tests/transaction
jinty at codespeak.net
jinty at codespeak.net
Fri Oct 7 09:37:08 CEST 2005
Author: jinty
Date: Fri Oct 7 09:37:07 2005
New Revision: 18248
Modified:
z3/sqlos/branch/jinty-3.0-fix_the_tests/transaction/__init__.py
Log:
It seems that suncUpdate is purposefully called just before the update, updating the tests to reflect that. At this point all the unit tests pass again.(126)
Modified: z3/sqlos/branch/jinty-3.0-fix_the_tests/transaction/__init__.py
==============================================================================
--- z3/sqlos/branch/jinty-3.0-fix_the_tests/transaction/__init__.py (original)
+++ z3/sqlos/branch/jinty-3.0-fix_the_tests/transaction/__init__.py Fri Oct 7 09:37:07 2005
@@ -119,6 +119,13 @@
>>> dm.state, dm.delta
(0, 2)
+ Check that syncUpdate() hasn't been called yet:
+
+ >>> person._sync_called
+ False
+ >>> person._expire_called
+ False
+
Prepare the transaction, make sure we get the expected values:
>>> t1 = '1'
@@ -134,10 +141,11 @@
...
TypeError: Already prepared
- Check that syncUpdate() hasn't been called yet:
+ Check that syncUpdate() has been called, but not expire:
+ XXX I am not sure why syncUpdate is called rather than just sync????
>>> person._sync_called
- False
+ True
>>> person._expire_called
False
More information about the z3-checkins
mailing list