[z3-checkins] r27817 - in z3/sqlos/branch/jinty-sqlobject2/src/sqlos: . ftests
jinty at codespeak.net
jinty at codespeak.net
Mon May 29 08:53:14 CEST 2006
Author: jinty
Date: Mon May 29 08:53:09 2006
New Revision: 27817
Modified:
z3/sqlos/branch/jinty-sqlobject2/src/sqlos/ftests/localutilities.txt
z3/sqlos/branch/jinty-sqlobject2/src/sqlos/interfaces.py
Log:
Fix some more tests
Modified: z3/sqlos/branch/jinty-sqlobject2/src/sqlos/ftests/localutilities.txt
==============================================================================
--- z3/sqlos/branch/jinty-sqlobject2/src/sqlos/ftests/localutilities.txt (original)
+++ z3/sqlos/branch/jinty-sqlobject2/src/sqlos/ftests/localutilities.txt Mon May 29 08:53:09 2006
@@ -25,8 +25,7 @@
Let's get the connection name:
- >>> from sqlos.interfaces import IConnectionName
- >>> connection_name = zapi.getUtility(IConnectionName).name
+ >>> connection_name = 'testconnection'
Now we set up a local database utility
@@ -63,19 +62,19 @@
there is currently no support for local sites in testcode.
>>> cursor = localUtility().cursor()
- >>> cursor.execute(
+ >>> r = cursor.execute(
... '''create table dog (
... id integer primary key,
... fullname varchar(50) not null,
... owner varchar(20) not null)''')
- >>> cursor.execute(
+ >>> r = cursor.execute(
... '''create table sample_isolated_person (
... id integer primary key,
... domains text,
... fullname varchar(50) not null,
... username varchar(20) not null,
... password varchar(20) not null)''')
- >>> cursor.execute(
+ >>> r = cursor.execute(
... '''create table sample_person (
... id integer primary key,
... fullname varchar(50),
@@ -114,6 +113,6 @@
And now try to see if the person has been actually created in the localUtility:
>>> cursor = localUtility().cursor()
- >>> cursor.execute("""select * from sample_person""")
+ >>> r = cursor.execute("""select * from sample_person""")
>>> cursor.fetchone()
[1, u'Bob', u'bob', u'obo']
Modified: z3/sqlos/branch/jinty-sqlobject2/src/sqlos/interfaces.py
==============================================================================
--- z3/sqlos/branch/jinty-sqlobject2/src/sqlos/interfaces.py (original)
+++ z3/sqlos/branch/jinty-sqlobject2/src/sqlos/interfaces.py Mon May 29 08:53:09 2006
@@ -41,10 +41,6 @@
class IISQLObject(Interface):
"""Class methods for SQLObject classes.
-
- >>> IISQLObject.providedBy(SQLObject)
- True
-
"""
More information about the z3-checkins
mailing list