-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Il 13/04/2012 18:59, Michael Bayer ha scritto:
> 
> On Apr 13, 2012, at 12:08 PM, Manlio Perillo wrote:
> 
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
> 
>> Hi.
> 
>> What is the best practice to create an engine in a test suite?
> 
>> In one of my projects I was using sqlalchemy.testing module and the sqla
>> nose plugin, but these are no more available in the latest versions.
> 
>> I have checked the alembic source code, and it have some private code
>> for parsing test.cfg configuration file and searching engine
>> configuration given an alias.
> 
>> However I would like to avoid having to write such a code for every
>> project that use SQLAlchemy.
> 
> A testing harness is outside the scope of SQLAlchemy itself.  There might be 
> some on Pypi, though I'd be skeptical that they'd solve this problem either; 
> creation of engines is highly dependent on frameworks and other patterns in 
> use and are very dependent on each application individually.   you'd need to 
> have your own pattern that you use.
>

Well, I thought that using database aliases was a simple yet flexible
solution.
But looking at SQLAlchemy test suite the word "simple" does not apply
any more ;-).


Thanks   Manlio
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+IZH4ACgkQscQJ24LbaURVdgCeKdsiwE03tcaa+RtU1WzG+WHS
LWAAnA5mQ/ThCe3cY7ROxK22RGc7deiU
=sfVx
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to