-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
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. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: GPGTools - http://gpgtools.org iQEcBAEBAgAGBQJPiFuEAAoJEDMCOcHE2v7hgH4H/2FFso1on9JQG0KTYWFTCZew GUufRnCn5Ij4QzNwkySlfEgU9BLopz1uil23BfKDpaW2zkP6Wj2ooknvoOQC58OG YXf2c2nUzA3DOThaBRs+RNxJ/qQpdL3D9TrOxuViEfrwYnpviH/qKVLw+i7hhotb mbr67yQWmBNHSMQgGou1eP3yPyrPGb0nAQX0ZsM789nSmDiE+hFlKpcmoQoCyQPu mE9IKSC16dLlFv7AGG4juhpqsrUbNVqZ12qYcq6rsDP7bl6JIX8Xy1uPfW4ZGd2g 8DWRtJNwZ0ffQ7CJAsyf25mfQeb9bnXtE9tYdmfpWjOhGRDekTa84HdzCkEaBkc= =BlIm -----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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.
