Reviewed: https://review.openstack.org/453037 Committed: https://git.openstack.org/cgit/openstack/oslo.messaging/commit/?id=f0b4baa70708fee45a0b11012d872c12a1c6a381 Submitter: Jenkins Branch: master
commit f0b4baa70708fee45a0b11012d872c12a1c6a381 Author: Thomas Bechtold <email address hidden> Date: Tue Apr 4 09:09:20 2017 +0200
Mock 'oslo_messaging.notify._impl_routing.LOG' in notifier tests
When running the tests with concurrency=1, 2 tests fail with:
AttributeError: Mock object has no attribute 'debug'
and
AssertionError: Expected 'notify' to be called once. Called 0 times
Mocking the LOG object solves the problem.
Change-Id: Ie7f4448a103fae448123a05bc92e961aac00d6ec Closes-Bug: #1660393
Reviewed: https:/ /review. openstack. org/453037 /git.openstack. org/cgit/ openstack/ oslo.messaging/ commit/ ?id=f0b4baa7070 8fee45a0b11012d 872c12a1c6a381
Committed: https:/
Submitter: Jenkins
Branch: master
commit f0b4baa70708fee 45a0b11012d872c 12a1c6a381
Author: Thomas Bechtold <email address hidden>
Date: Tue Apr 4 09:09:20 2017 +0200
Mock 'oslo_messaging .notify. _impl_routing. LOG' in notifier tests
When running the tests with concurrency=1, 2 tests fail with:
Attribute Error: Mock object has no attribute 'debug'
and
Assertion Error: Expected 'notify' to be called once. Called 0 times
Mocking the LOG object solves the problem.
Change-Id: Ie7f4448a103fae 448123a05bc92e9 61aac00d6ec
Closes-Bug: #1660393