Misuse of 'assert_has_calls' in unit tests
Bug #1840200 reported by
Takashi Natsume
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Takashi Natsume | ||
Ocata |
In Progress
|
Medium
|
Unassigned | ||
Pike |
In Progress
|
Medium
|
Unassigned | ||
Queens |
Fix Committed
|
Medium
|
Takashi Natsume | ||
Rocky |
Fix Committed
|
Medium
|
Takashi Natsume | ||
Stein |
Fix Committed
|
Medium
|
Takashi Natsume |
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 post a comment you must log in.
Fix proposed to branch: master /review. opendev. org/676536
Review: https:/