commit df0e566f2a144f53df77be29abb1f02ff11cf9be
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>
Change-Id: I12ff85a9480d8000b0de54939c3be71458162a40
Reviewed: https:/ /review. openstack. org/200559 /git.openstack. org/cgit/ openstack/ glance/ commit/ ?id=df0e566f2a1 44f53df77be29ab b1f02ff11cf9be
Committed: https:/
Submitter: Jenkins
Branch: master
commit df0e566f2a144f5 3df77be29abb1f0 2ff11cf9be
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 00b0de54939c3be 71458162a40
Co-Authored-By: Ian Cordasco <email address hidden>
Change-Id: I12ff85a9480d80