← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1503212] Re: pylint fails when signature changed by decorator

 

Fix proposed to branch: master
Review: https://review.openstack.org/231491

** Changed in: neutron
       Status: Invalid => In Progress

** Changed in: neutron
     Assignee: (unassigned) => Bogdan Tabor (bogdan-tabor)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1503212

Title:
  pylint fails when signature changed by decorator

Status in neutron:
  Invalid

Bug description:
  Pylint is not able to recognize mocked method's argument, when there
  are normal arguments already present.

  reproduction steps
  --------------------------
  1) Change whatever in neutron.tests.unit.agent.l3.test_agent.py
  2) run tox -v -e pep8 HEAD~1

  visible consequence
  ---------------------------
  Running pylint...
  You can speed this up by running it on 'HEAD~[0-9]' (e.g. HEAD~1, this change only)...
  ************* Module neutron.tests.unit.agent.l3.test_agent
  E:1033, 8: No value for argument 'IPDevice' in method call (no-value-for-parameter)
  ERROR: InvocationError: '/usr/bin/sh ./tools/coding-checks.sh --pylint HEAD~1'
  ERROR:   pep8: commands failed

  It will cause Jenkins gate fail, thus preventing merge

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1503212/+subscriptions


References