Skip to content

Commit 2957f28

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "tests: Enable logging fixture"
2 parents ca04738 + 89a8f72 commit 2957f28

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

openstackclient/network/v2/local_ip_association.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def take_action(self, parsed_args):
124124
"fixed port "
125125
"name or ID '%(fixed_port_id)s': %(e)s"
126126
),
127-
{'fixed port ID': fixed_port_id, 'e': e},
127+
{'fixed_port_id': fixed_port_id, 'e': e},
128128
)
129129

130130
if result > 0:

openstackclient/tests/unit/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ def setUp(self):
5252
stderr = self.useFixture(fixtures.StringStream("stderr")).stream
5353
self.useFixture(fixtures.MonkeyPatch("sys.stderr", stderr))
5454

55+
self.log = self.useFixture(fixtures.LoggerFixture())
56+
5557
def assertNotCalled(self, m, msg=None):
5658
"""Assert a function was not called"""
5759

0 commit comments

Comments
 (0)