tests: Enable logging fixture
Quieten the output of our test runs significantly. Change-Id: Ie32c919bb987eb0b9bc4c5b2ec54ee20a6841c03 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
This commit is contained in:

committed by
Stephen Finucane

parent
d0d4077e1d
commit
89a8f72960
@@ -124,7 +124,7 @@ class DeleteLocalIPAssociation(command.Command):
|
||||
"fixed port "
|
||||
"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:
|
||||
|
@@ -51,6 +51,8 @@ class TestCase(testtools.TestCase):
|
||||
stderr = self.useFixture(fixtures.StringStream("stderr")).stream
|
||||
self.useFixture(fixtures.MonkeyPatch("sys.stderr", stderr))
|
||||
|
||||
self.log = self.useFixture(fixtures.LoggerFixture())
|
||||
|
||||
def assertNotCalled(self, m, msg=None):
|
||||
"""Assert a function was not called"""
|
||||
|
||||
|
Reference in New Issue
Block a user