Fix e-r with fixtures 3.0.0
Fixtures 3.0.0 adds another parameter to MonkeyPatch fixture usage which is some kind of link back to the class being patched out. This makes the ER code pass under fixtures 3.0. Change-Id: Id19d0dde8fa558cbf3c76a66430170d0d5b0cd94
This commit is contained in:
parent
20a050302e
commit
afba5b2b7e
@ -106,7 +106,7 @@ class TestBotWithTestTools(tests.TestCase):
|
||||
self.fake_config.get('gerrit', 'key'),
|
||||
False)
|
||||
|
||||
def fake_print(self, channel, msg):
|
||||
def fake_print(self, cls, channel, msg):
|
||||
reference = ("openstack/keystone change: https://review.openstack.org/"
|
||||
"64750 failed because of: "
|
||||
"gate-keystone-python26: "
|
||||
@ -114,7 +114,7 @@ class TestBotWithTestTools(tests.TestCase):
|
||||
"gate-keystone-python27: unrecognized error")
|
||||
self.assertEqual(reference, msg)
|
||||
|
||||
def fake_display(self, channel, msg):
|
||||
def fake_display(self, *args):
|
||||
return True
|
||||
|
||||
def test_error_found(self):
|
||||
|
@ -2,7 +2,7 @@ hacking>=0.10.0,<0.11
|
||||
|
||||
coverage>=3.6
|
||||
discover
|
||||
fixtures>=0.3.14
|
||||
fixtures>=3.0.0
|
||||
python-subunit
|
||||
sphinx>=1.1.2,<1.2
|
||||
oslo.sphinx
|
||||
|
Loading…
x
Reference in New Issue
Block a user