On 02/03/10 10:29 +0100, Cédric Krier wrote: > On 28/02/10 12:03 -0800, Ian Wilson wrote: > > I don't think I really understand how to run or create unit tests in > > tryton. I have seen different configuration files for testing versus > > production versus development in another project though. The parameter > > db_type exists in the configuration file now. Why can't that be used > > to pick which database to use for testing? Taking a look at > > test_tryton.py it seems that the values for the database are hard > > coded, shouldn't this be read in from a configuration file? > > > > I think I found a good solution by parsing configuration and change default > database type. > I have uploaded a new version on http://codereview.appspot.com/224071/show >
I have uploaded a new version that add the "skiptest" attribute on "data" tag. I plan to use it inside xml file when there is a huge amount of data to load that is not required for testing like the countries or the currencies. This allow to run test faster. -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email/Jabber: [email protected] Website: http://www.b2ck.com/
pgpvbP9r1hjjN.pgp
Description: PGP signature
