← Back to team overview

openerp-connector-community team mailing list archive

Re: Setup for unit tests?

 

Hi,

Glad to see you working with the tests.
Did you use the following command?

$ bin/rununittests -m magentoerpconnect

Did you observed that this command ignores the database?
If you open the bin/rununittests script what do you have in DBNAME ?


Guewen Baconnier
Business Solutions Software Developer

Camptocamp SA
PSE A, CH-1015 Lausanne
Phone: +41 21 619 10 39
Office: +41 21 619 10 10
http://www.camptocamp.com/


On Wed, Mar 26, 2014 at 2:24 PM, Thomas Rehn <thomas.rehn@xxxxxxxxxx> wrote:
> Hi all,
>
> Today I've tried to run unit tests for the connector and magento
> connector, following the buildout recipe [1]. I have managed to get a
> running OpenERP server, but I can't get the 'oe' tool or the unit tests
> to work because they ignore the database connection settings in
> etc/openerp.cfg (and buildout.cfg). Setting the database setting
> directly in 'openerpcommand/run_tests.py' leads to other strange bugs
> about models that cannot be found.
> Am I missing some obvious configuration setting for oe/the tests?
>
> Thanks your help.
>
> Best,
>  Thomas.
>
> [1] http://openerp-magento-connector.com/project/contribute.html
>
> --
> Mailing list: https://launchpad.net/~openerp-connector-community
> Post to     : openerp-connector-community@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openerp-connector-community
> More help   : https://help.launchpad.net/ListHelp


Follow ups

References