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:
Sean Dague 2016-06-13 16:08:43 -04:00
parent 20a050302e
commit afba5b2b7e
2 changed files with 3 additions and 3 deletions

View File

@ -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):

View File

@ -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