From ad14c6220fa7d2110a477f83bfb6a14e3b79bd31 Mon Sep 17 00:00:00 2001 From: Kyrylo Romanenko Date: Tue, 27 Sep 2016 17:48:54 +0300 Subject: [PATCH] [trivial] Remove unused variables assignment Remove unused variable assignments in OSC plugin unit tests. Change-Id: Iad3d8d7df763342dca1e043245858d356f55d384 --- .../tests/unit/osc/v1/test_baremetal_chassis.py | 10 ++++------ ironicclient/tests/unit/osc/v1/test_baremetal_port.py | 8 +++----- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/ironicclient/tests/unit/osc/v1/test_baremetal_chassis.py b/ironicclient/tests/unit/osc/v1/test_baremetal_chassis.py index df65b5be7..6c2c55856 100644 --- a/ironicclient/tests/unit/osc/v1/test_baremetal_chassis.py +++ b/ironicclient/tests/unit/osc/v1/test_baremetal_chassis.py @@ -264,8 +264,7 @@ class TestChassisList(TestChassis): parsed_args = self.check_parser(self.cmd, arglist, verifylist) - # DisplayCommandBase.take_action() returns two tuples - columns, data = self.cmd.take_action(parsed_args) + self.cmd.take_action(parsed_args) # Set expected values kwargs = { @@ -290,7 +289,7 @@ class TestChassisList(TestChassis): parsed_args = self.check_parser(self.cmd, arglist, verifylist) - columns, data = self.cmd.take_action(parsed_args) + self.cmd.take_action(parsed_args) # Set expected values kwargs = { @@ -461,8 +460,7 @@ class TestChassisShow(TestChassis): parsed_args = self.check_parser(self.cmd, arglist, verifylist) - # DisplayCommandBase.take_action() returns two tuples - columns, data = self.cmd.take_action(parsed_args) + self.cmd.take_action(parsed_args) # Set expected values args = [uuid] @@ -486,7 +484,7 @@ class TestChassisShow(TestChassis): parsed_args = self.check_parser(self.cmd, arglist, verifylist) - columns, data = self.cmd.take_action(parsed_args) + self.cmd.take_action(parsed_args) # Set expected values args = [uuid] diff --git a/ironicclient/tests/unit/osc/v1/test_baremetal_port.py b/ironicclient/tests/unit/osc/v1/test_baremetal_port.py index e9d84b9c9..60476d872 100644 --- a/ironicclient/tests/unit/osc/v1/test_baremetal_port.py +++ b/ironicclient/tests/unit/osc/v1/test_baremetal_port.py @@ -61,7 +61,6 @@ class TestCreateBaremetalPort(TestBaremetalPort): parsed_args = self.check_parser(self.cmd, arglist, verifylist) - # DisplayCommandBase.take_action() returns two tuples self.cmd.take_action(parsed_args) # Set expected values @@ -90,8 +89,7 @@ class TestCreateBaremetalPort(TestBaremetalPort): self.cmd.log = mock.Mock() - # DisplayCommandBase.take_action() returns two tuples - columns, data = self.cmd.take_action(parsed_args) + self.cmd.take_action(parsed_args) # Set expected values args = { @@ -398,7 +396,7 @@ class TestBaremetalPortList(TestBaremetalPort): verifylist = [('address', baremetal_fakes.baremetal_port_address)] parsed_args = self.check_parser(self.cmd, arglist, verifylist) - columns, data = self.cmd.take_action(parsed_args) + self.cmd.take_action(parsed_args) kwargs = { 'address': baremetal_fakes.baremetal_port_address, @@ -412,7 +410,7 @@ class TestBaremetalPortList(TestBaremetalPort): verifylist = [('node', baremetal_fakes.baremetal_uuid)] parsed_args = self.check_parser(self.cmd, arglist, verifylist) - columns, data = self.cmd.take_action(parsed_args) + self.cmd.take_action(parsed_args) kwargs = { 'node': baremetal_fakes.baremetal_uuid,