← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1321946] [NEW] MagicMocks aren't using specs so typos pass tests

 

Public bug reported:

Many MagicMocks currently aren't using specs or autospec so they respond
to any function call.

The downside to this is that calls to non-existent assertion calls
silently pass instead of failing. An example of how these cases build up
is available in the patch for the related bug [1].

1. https://bugs.launchpad.net/neutron/+bug/1320774

** Affects: neutron
     Importance: Undecided
     Assignee: Kevin Benton (kevinbenton)
         Status: New

** Changed in: neutron
     Assignee: (unassigned) => Kevin Benton (kevinbenton)

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

Title:
  MagicMocks aren't using specs so typos pass tests

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  Many MagicMocks currently aren't using specs or autospec so they
  respond to any function call.

  The downside to this is that calls to non-existent assertion calls
  silently pass instead of failing. An example of how these cases build
  up is available in the patch for the related bug [1].

  1. https://bugs.launchpad.net/neutron/+bug/1320774

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


Follow ups

References