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

OCA / pylint-odoo / 1060
98%

Build:
DEFAULT BRANCH: master
Ran 10 Sep 2021 05:32PM UTC
Jobs 5
Files 7
Run time 2min
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

pending completion
1060

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

2 of 2 new or added lines in 1 file covered. (100.0%)

1486 of 1490 relevant lines covered (99.73%)

4.94 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1060.1 (TOXENV=pylint) 10 Sep 2021 05:32PM UTC 0
98.66
Travis Job 1060.1
2 1060.2 (TOXENV=pylint) 10 Sep 2021 05:32PM UTC 0
98.86
Travis Job 1060.2
3 1060.3 (TOXENV=pylint DEPLOY="1") 10 Sep 2021 05:32PM UTC 0
98.72
Travis Job 1060.3
4 1060.4 (TOXENV=pylint) 10 Sep 2021 05:32PM UTC 0
98.74
Travis Job 1060.4
5 1060.5 (TOXENV=pylint) 10 Sep 2021 05:34PM UTC 0
98.74
Travis Job 1060.5
Source Files on build 1060
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #1060
  • 27ad80ea on github
  • Prev Build on master (#1055)
  • Next Build on master (#1062)
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