Em 12/03/2014 16:27, Iasmini - Gmail escreveu:
-------- Mensagem original --------
Assunto: Re: [tryton] KeyError on unit test
Data: Tue, 11 Mar 2014 15:43:33 +0100
De: Jean C <[email protected]>
Responder a: [email protected]
Para: [email protected]
Is there a chance you registered your models under the wrong module name ?
Jean Cavallo
/Coopengo/
It was an error in file tests/__init__.py
Thank you.
--
Iasmini Gomes
Sílex Sistemas
www.silexsistemas.com.br
I've corrected the file tests/__init__.py, but the error continued:
__init__.py:
from .test_nfse_br import suite
======================================================================
ERROR: test0010create_invoice (__main__.TestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/silex/tryton/nfse_br/tests/test_nfse_br.py", line 61, in
test0010create_invoice
'legal_type': LEGAL_TYPE_DIC['juridica']['id']
File "/opt/trytond/trytond/model/modelsql.py", line 336, in create
field = cls._fields[fname]
KeyError: 'optante_simples'
----------------------------------------------------------------------
Ran 3 tests in 77.108s
FAILED (errors=1)
Process finished with exit code 0
--
Iasmini Gomes
Sílex Sistemas
www.silexsistemas.com.br
---
Este email está limpo de vírus e malwares porque a proteção do avast! Antivírus
está ativa.
http://www.avast.com