• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

OCA / pylint-odoo / 1060 / 2
98%
master: 98%

Build:
DEFAULT BRANCH: master
Ran 10 Sep 2021 05:32PM UTC
Files 7
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Sep 2021 05:30PM UTC coverage: 98.859% (+0.2%) from 98.656%
TOXENV=pylint

push

travis-ci-com

web-flow
<a href="https://github.com/OCA/pylint-odoo/commit/<a class=hub.com/OCA/pylint-odoo/commit/27ad80ea937bf8afc85c3d719a62ea95efd4cb52">27ad80ea9<a href="https://github.com/OCA/pylint-odoo/commit/27ad80ea937bf8afc85c3d719a62ea95efd4cb52">&quot;&gt;[ADD] context-overridden: Better using kwargs instead of dictionary (#256)

More info about see docstring of the method:
  - https://github.com/odoo/odoo/blob/</a><a class="double-link" href="https://github.com/OCA/pylint-odoo/commit/<a class="double-link" href="https://github.com/OCA/pylint-odoo/commit/ff3064258a320e4008b3fb52a149e6751ae1e7f5">ff3064258</a>">ff3064258</a><a href="https://github.com/OCA/pylint-odoo/commit/27ad80ea937bf8afc85c3d719a62ea95efd4cb52">/odoo/models.py#L5086-L5105

Using
  - `self.with_context({&#39;key&#39;: &#39;value&#39;})`

The original context is overridden

It should be:
  - `self.with_context(**{&#39;key&#39;: &#39;value&#39;})`
  - `self.with_context(key=&#39;value&#39;)`

If you need to override the full context only silent this check using:
  - `self.with_context({&#39;key&#39;: &#39;value&#39;})  # pylint: disable=context-overridden`
In order to allow an explicit overridden

1473 of 1490 relevant lines covered (98.86%)

0.99 hits per line

Source Files on job 1060.2 (TOXENV=pylint)
  • Tree
  • List 0
  • Changed 3
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 933
  • Travis Job 1060.2
  • 27ad80ea on github
  • Prev Job for TOXENV=pylint on master (#1055.1)
  • Next Job for TOXENV=pylint on master (#1062.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc