On 10/01/13 04:41 -0800, Jesús Martín Jiménez wrote:
> Hi all,
> 
> I'm developing the 
> account_es<https://bitbucket.org/trytonspain/trytond-account_es/overview>module
>  for trytond 2.7 and it seems that works fine. I'd like to add python 
> unit test to this module in order to allow checking its correct working 
> after each modification, so I copied the unit test code from account module 
> with some little modification (you can find the code in the above link, and 
> obviously, the code is uncommented). But when I run the script, i get this 
> message error: 
> Could anyone tell me what is wrong in the code?

The account unittest commit some changes to the database to ease writing
other tests. So with your copy/paste you have more than 1 company
created etc.
I think you don't need those test in your module because it just define
data. So as far as the data can be loaded in the database it is fine.

-- 
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: pgp1cfvAgMsej.pgp
Description: PGP signature

Reply via email to