commit 899a8b9a77766505ad9002c543576af0f1db9a74
Author: Louis Taylor <email address hidden>
Date: Fri Jul 10 14:17:18 2015 +0000
Remove usage of assert_called_once in mocks
This was never a real part of the mock api, but mock was happily mocking
it out and letting the tests pass. The new mock release made this
behaviour break, causing tests to fail on all patches. This patch
replaces instances of assert_called_once with an assert of the mock's
call_count.
Closes-Bug: #1473369
Co-Authored-By: Ian Cordasco <email address hidden>
(cherry picked from commit df0e566f2a144f53df77be29abb1f02ff11cf9be)
Reviewed: https:/ /review. openstack. org/202639 /git.openstack. org/cgit/ openstack/ glance/ commit/ ?id=899a8b9a777 66505ad9002c543 576af0f1db9a74
Committed: https:/
Submitter: Jenkins
Branch: stable/kilo
commit 899a8b9a7776650 5ad9002c543576a f0f1db9a74
Author: Louis Taylor <email address hidden>
Date: Fri Jul 10 14:17:18 2015 +0000
Remove usage of assert_called_once in mocks
This was never a real part of the mock api, but mock was happily mocking
it out and letting the tests pass. The new mock release made this
behaviour break, causing tests to fail on all patches. This patch
replaces instances of assert_called_once with an assert of the mock's
call_count.
Closes-Bug: #1473369 3df77be29abb1f0 2ff11cf9be)
Co-Authored-By: Ian Cordasco <email address hidden>
(cherry picked from commit df0e566f2a144f5
Conflicts: tests/unit/ async/test_ taskflow_ executor. py
glance/
Change-Id: I12ff85a9480d80 00b0de54939c3be 71458162a40