On 07/02/11 17:26 -0800, Kurt Miebach wrote:
> On Feb 7, 9:17 am, Cédric Krier <[email protected]> wrote:
> > On 06/02/11 19:08 -0800, Kurt Miebach wrote:
> > > On Jan 28, 11:05 am, Cédric Krier <[email protected]> wrote:
> > > > New modules have now scenario for testing like 
> > > > account_stock_continental:
> > > >http://www.google.com/url?sa=D&q=http://hg.tryton.org/modules/account...
> > >
> > > I am using this to write some tests for my import scripts now.
> > >
> > > In the file scenario_account_stock_continental.rst lines 23-29 modules
> > > are installed.
> > > I would like to do this in version 1.8, is it possible? How do I have
> > > to change the code?
> 
> > It should work the same way.
> > Are you sure you don't override the config variable of the line 19?
> 
> Indeed I broke this part, now it works in 1.8, thank you.
> 
> 
> Please allow another question:
> 
> I have the impression that each time I run this scenario the code
> inserts another company instance, so the companies add up in the
> unittest db.
> 
> How would I start with a fresh sqlite memory db on each call of the
> script?

SQLite memory database is dropped automaticaly at the end of the script.
Are you sure you are not using PostgreSQL backend?

-- 
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/

Attachment: pgpGjbIkUgosv.pgp
Description: PGP signature

Reply via email to