Merge "tests: Enable logging fixture"
This commit is contained in:
commit
2957f28ff1
openstackclient
@ -124,7 +124,7 @@ class DeleteLocalIPAssociation(command.Command):
|
|||||||
"fixed port "
|
"fixed port "
|
||||||
"name or ID '%(fixed_port_id)s': %(e)s"
|
"name or ID '%(fixed_port_id)s': %(e)s"
|
||||||
),
|
),
|
||||||
{'fixed port ID': fixed_port_id, 'e': e},
|
{'fixed_port_id': fixed_port_id, 'e': e},
|
||||||
)
|
)
|
||||||
|
|
||||||
if result > 0:
|
if result > 0:
|
||||||
|
@ -52,6 +52,8 @@ class TestCase(testtools.TestCase):
|
|||||||
stderr = self.useFixture(fixtures.StringStream("stderr")).stream
|
stderr = self.useFixture(fixtures.StringStream("stderr")).stream
|
||||||
self.useFixture(fixtures.MonkeyPatch("sys.stderr", stderr))
|
self.useFixture(fixtures.MonkeyPatch("sys.stderr", stderr))
|
||||||
|
|
||||||
|
self.log = self.useFixture(fixtures.LoggerFixture())
|
||||||
|
|
||||||
def assertNotCalled(self, m, msg=None):
|
def assertNotCalled(self, m, msg=None):
|
||||||
"""Assert a function was not called"""
|
"""Assert a function was not called"""
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user