← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1840200] Re: Misuse of 'assert_has_calls' in unit tests

 

** Also affects: nova/queens
   Importance: Undecided
       Status: New

** Also affects: nova/rocky
   Importance: Undecided
       Status: New

** Also affects: nova/stein
   Importance: Undecided
       Status: New

** Also affects: nova/ocata
   Importance: Undecided
       Status: New

** Also affects: nova/pike
   Importance: Undecided
       Status: New

** Changed in: nova/ocata
     Assignee: (unassigned) => Takashi NATSUME (natsume-takashi)

** Changed in: nova/pike
     Assignee: (unassigned) => Takashi NATSUME (natsume-takashi)

** Changed in: nova/queens
     Assignee: (unassigned) => Takashi NATSUME (natsume-takashi)

** Changed in: nova/rocky
     Assignee: (unassigned) => Takashi NATSUME (natsume-takashi)

** Changed in: nova/stein
     Assignee: (unassigned) => Takashi NATSUME (natsume-takashi)

** Changed in: nova/ocata
       Status: New => Confirmed

** Changed in: nova/pike
       Status: New => Confirmed

** Changed in: nova/queens
       Status: New => Confirmed

** Changed in: nova/rocky
       Status: New => Confirmed

** Changed in: nova/stein
       Status: New => Confirmed

** Changed in: nova/ocata
   Importance: Undecided => Medium

** Changed in: nova/pike
   Importance: Undecided => Medium

** Changed in: nova/queens
   Importance: Undecided => Medium

** Changed in: nova/rocky
   Importance: Undecided => Medium

** Changed in: nova/stein
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1840200

Title:
  Misuse of 'assert_has_calls' in unit tests

Status in OpenStack Compute (nova):
  In Progress
Status in OpenStack Compute (nova) ocata series:
  Confirmed
Status in OpenStack Compute (nova) pike series:
  Confirmed
Status in OpenStack Compute (nova) queens series:
  Confirmed
Status in OpenStack Compute (nova) rocky series:
  Confirmed
Status in OpenStack Compute (nova) stein series:
  Confirmed

Bug description:
  In unit tests, 'has_calls' method is used to assert mock calls.
  But 'has_calls' does not exist in assertion methods.
  It should be 'assert_has_calls'.

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


References