openerp-community team mailing list archive
-
openerp-community team
-
Mailing list archive
-
Message #06375
Re: OCA: transition from Launchpad to Github
I wonder if a monkey patch would work - they are all python constraints
basic logic, copy the constraints lists to some other list of lists,
reassign obj constraints in module to []
assign back when needed
general idea
addon_constraints = [openerp.addons.account_constraints.obj1._constraints,
openerp.addons.account_constraints.obj2.constraints]
openerp.addons.account_constraints.obj1.constraints = []
openerp.addons.account_constraints.obj1.constraints = []
while i am testing - can I detect that from comandline options?:
if module being tested is openerp.addons.account_constraints (test
decorator maybe):
assign the constraints back
finish testing module
reset
would need to sit in account_constraints module somewhere.
On Thu, Jul 3, 2014 at 5:57 PM, Nicolas Bessi <nicolas.bessi@xxxxxxxxxxxxxx>
wrote:
> Hello,
>
> I need advice to setup travis for account financial tools.
> The addon account_constraints adds a lot of constraints and make other
> addons tests fails.
>
> We have a case of incompatibiliy of addons.
>
> One solution is to exclude the module of the test but that not nice. The
> second will be to save the database as a template before running test and
> restore
> a database for each addon to be tested and concatenate the result at the
> end, but I will not be able to make it before a long period.
>
> Any support welcome.
>
> Nicolas
>
>
>
>
> 2014-07-01 10:48 GMT+02:00 Guewen Baconnier <
> guewen.baconnier@xxxxxxxxxxxxxx>:
>
> On 07/01/2014 09:37 AM, Daniel Reis wrote:
>> >> All the steps are there:
>> >>
>> https://github.com/OCA/maintainers-tools/wiki/Migration-Launchpad-%E2%86%92-GitHub#help-on-the-launchpad-mirroring
>> >>
>> >
>> > My bad, I didn't realize those instructions were in the same page. I
>> > added an internal link for other blind people like me to see it.
>> >
>> > Regards
>> > /DR
>>
>> Thanks for your improvements on the wiki!
>>
>> --
>> 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/
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~openerp-community
>> Post to : openerp-community@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~openerp-community
>> More help : https://help.launchpad.net/ListHelp
>>
>
>
>
> --
> Nicolas Bessi
> Senior ERP consultant
> Business Solution technical manager
>
> Camptocamp SA
> PSE A
> CH-1015 Lausanne
>
> http://openerp.camptocamp.com
>
> Direct: +41 21 619 10 26
> Office: +41 21 619 10 10
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openerp-community
> Post to : openerp-community@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openerp-community
> More help : https://help.launchpad.net/ListHelp
>
>
Follow ups
References