Merge "tests: Enable logging fixture"

This commit is contained in:
Zuul 2023-12-05 18:43:13 +00:00 committed by Gerrit Code Review
commit 2957f28ff1
2 changed files with 3 additions and 1 deletions

View File

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

View File

@ -52,6 +52,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"""