2014-05-23 18:49 GMT+02:00 Sergi Almacellas Abellana <se...@koolpi.com>:

>  El 23/05/14 14:17, Jesús Martín Jiménez ha escrit:
>
>
>
> El viernes, 23 de mayo de 2014 13:46:49 UTC+2, Cédric Krier escribió:
>>
>> On 23 May 04:34, Jesús Martín Jiménez wrote:
>> > Hi,
>> >
>> > I'm trying to run a test in a module I'm developing, and I've got this
>> > traceback [1]. Have anything changed since 3.0 version that I missed?
>> >
>> > Thank you.
>> >
>> > [1]
>> > Traceback (most recent call last):
>> >   File "test_account.py", line 8, in <module>
>> >     import trytond.tests.test_tryton
>> >   File
>> > "/home/jmartin/workspace/trytond/trytond/trytond/tests/test_tryton.py",
>>
>> > line 25, in <module>
>> >     DB_NAME = os.environ['DB_NAME']
>>
>> os.environ !
>>
>
> Ok. Now I've got this result. Definitively I'm doing something wrong, but
> I don't know what -_-'
>
> You can just use the run_test[1] script with -m <module_name> to run only
> for one module.
>
>
Thank you Sergi. I've got it. I was trying to run a shell script to
automatize the test of all modules, but I solved it adding these lines [1]
to your script [2]

[1]
                'PYTHONPATH': ':'.join(pythonpath),
                'DB_NAME': ':memory:',

[2]
https://bitbucket.org/nantic/tryton-tests/src/8ab75946d8d6421ffaab400cbeebf608dd7f7206/runtests.py?at=default#cl-532



>
> [1]
> http://hg.tryton.org/trytond/file/a29aa9e0014f/trytond/tests/run-tests.py
>
> --
> Sergi Almacellas Abellanawww.koolpi.com
> Twitter: @pokoli_srk
>
>


-- 

Jesús Martín

Zikzakmedia SL
Dr. Fleming, 28, baixos
08720 Vilafranca del Penedès
☏ 93 890 21 08

Reply via email to