Skip to content

Commit 89a8f72

Browse files
committed
tests: Enable logging fixture
Quieten the output of our test runs significantly. Change-Id: Ie32c919bb987eb0b9bc4c5b2ec54ee20a6841c03 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
1 parent d0d4077 commit 89a8f72

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
@@ -51,6 +51,8 @@ def setUp(self):
5151
stderr = self.useFixture(fixtures.StringStream("stderr")).stream
5252
self.useFixture(fixtures.MonkeyPatch("sys.stderr", stderr))
5353

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

0 commit comments

Comments
 (0)