acsone / click-odoo

Run python scripts in a Odoo environment
GNU Lesser General Public License v3.0
115 stars 44 forks source link

Reusable odoodb pytest fixture #6

Open sbidoul opened 6 years ago

sbidoul commented 6 years ago

We have the odoodb fixture in this project, but repeated in a similar way in click-odoo-contrib. There must be a way to make something reusable.

blaggacao commented 6 years ago

I think, those utils are shorter lived than a real deployment cycle of a base or intermediary library. Therefore, I propose a git based workflow to fetching such common boilerplate.

I've taken a try here: https://github.com/xoe-labs/click-odoo-scaffold/blob/master/hack/sync-with-scaffold.sh

Baked into a Makefile command