acsone / click-odoo

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

refactor env_options #18

Closed sbidoul closed 6 years ago

sbidoul commented 6 years ago

Compatibility with click groups, sub commands.

Fixes #16.

env_options is now a class, for better extensibility (although at the moment no methods are publicly documented). The only method of the env_options class that I'm considering to document as an experimental feature is def get_odoo_args(self, ctx)

codecov[bot] commented 6 years ago

Codecov Report

Merging #18 into master will increase coverage by 1.16%. The diff coverage is 93.93%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #18      +/-   ##
==========================================
+ Coverage   83.14%   84.31%   +1.16%     
==========================================
  Files           4        5       +1     
  Lines         178      204      +26     
  Branches       27       26       -1     
==========================================
+ Hits          148      172      +24     
- Misses         21       22       +1     
- Partials        9       10       +1
Impacted Files Coverage Δ
click_odoo/env.py 80.55% <ø> (-3.58%) :arrow_down:
click_odoo/cli.py 88.88% <100%> (-5.48%) :arrow_down:
click_odoo/__init__.py 100% <100%> (ø) :arrow_up:
click_odoo/env_options.py 93.81% <93.81%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update b30e0b0...8b7b98e. Read the comment docs.