[z3-checkins] r18316 - z3/sqlos/trunk
jinty at codespeak.net
jinty at codespeak.net
Mon Oct 10 03:24:34 CEST 2005
Author: jinty
Date: Mon Oct 10 03:24:31 2005
New Revision: 18316
Added:
z3/sqlos/trunk/ftesting.zcml
Log:
Add an ftesting.zcml to set up the functional tests. Apparently this was not committed when porting patches from my branch.
Added: z3/sqlos/trunk/ftesting.zcml
==============================================================================
--- (empty file)
+++ z3/sqlos/trunk/ftesting.zcml Mon Oct 10 03:24:31 2005
@@ -0,0 +1,46 @@
+<configure
+ xmlns='http://namespaces.zope.org/zope'
+ xmlns:rdb='http://namespaces.zope.org/rdb'
+ xmlns:sqlos='http://namespaces.sqlobject.org/sqlos'>
+
+ <!-- remember to change both the connectionName and database adapter
+ to change the functional testing db or things will go arwy. -->
+
+ <sqlos:connectionName name='sqlite' />
+
+ <adapter
+ provides=".interfaces.IZopeSQLConnection"
+ for="zope.app.rdb.interfaces.IZopeConnection"
+ permission="zope.Public"
+ factory=".adapter.SQLiteAdapter"
+ />
+ <!--
+ factory=".adapter.PostgresAdapter"
+ factory=".adapter.MySQLAdapter"
+ -->
+
+ <rdb:provideConnection
+ name='sqlite'
+ component=".testing.testdb.SQLiteda"
+ dsn='dbi://:memory:'
+ />
+
+ <rdb:provideConnection
+ name='pgsql'
+ component='psycopgda.adapter.PsycopgAdapter'
+ dsn='dbi://testuser:testuser@localhost:5432/testdb'
+ />
+
+ <rdb:provideConnection
+ name='mysql'
+ component='mysqldbda.adapter.MySQLdbAdapter'
+ dsn='dbi://testuser:testuser@localhost:3306/testdb'
+ />
+
+ <sqlos:factory
+ id="SamplePerson"
+ component=".testing.sampleperson.SamplePerson"
+ description="A Sample Person"
+ />
+
+</configure>
More information about the z3-checkins
mailing list